text
stringlengths
1
1.05M
SECTION code_clib SECTION code_fp_math48 PUBLIC _tgamma EXTERN cm48_sdccix_tgamma defc _tgamma = cm48_sdccix_tgamma
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 004D38 move.l D0, (A4)+ 004D3A move.l D0, (A4)+ 033950 move.w D0, ($a2,A6) 033954 move.b #$ff, ($a5,A6) 034002 move.w #$36, ($a2,A6) 034008 move.b #$1, ($80,A6) [enemy+A2] 034048 subq.w #1, ($a...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xfd6d, %rsi lea addresses_normal_ht+0x10f6d, %rdi nop nop nop nop and $52899, %r11 mov $43, %rcx rep movsq nop sub $22078, %r15 lea addresses_normal_ht+0xc56d, %rsi lea addre...
/* Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke 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 source code must retain the above copyright ...
#include "Game/Entities/ParticleEmitter.hpp" #include "Util/Random.hpp" #include "Util/Math.hpp" ParticleEmitter::ParticleEmitter(sf::Vector2f pos, sf::Texture* particleTexture, float launchVelocity, float velocityRandomRange, float lifetime, float lifetimeRandomRange, float gravity, bool fadeOut) : GameObject(pos...
; A131673: Size of the largest BDD of symmetric Boolean functions of n variables when the sink nodes are counted. ; 1,3,5,7,10,14,19,25,31,38,46,55,65,76,88,101,115,129,144,160,177,195,214,234,255,277,300,324,349,375,402,430,459,489,519,550,582,615,649,684,720,757,795,834,874,915,957,1000,1044,1089,1135,1182,1230,1279,...
; FREE function for far memory model ; 31/3/00 GWL ; ; $Id: free_far.asm,v 1.6 2017-01-02 20:37:10 aralbrec Exp $ ; SECTION code_clib PUBLIC free_far PUBLIC _free_far PUBLIC free_loop EXTERN malloc_table,pool_table include "memory.def" ; void free(far *p); .free...
XLIB pixeladdress XREF base_graphics ; ; $Id: pixladdr.asm,v 1.3 2001/04/18 13:21:38 stefano Exp $ ; ; ****************************************************************** ; ; Get absolute pixel address in map of virtual (x,y) coordinate. ; ; Design & programming by Gunther Strube, Copyright (C) InterLogic 1995 ; ;...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer. // The fuzzer must find a string based on dictionary words: // "Elvis" // "Presley" #include <cstddef> #include <cstdint> #include <cstdlib> #include <cstring> #include <io...
; A098660: E.g.f. BesselI(0,2*sqrt(2)*x) + BesselI(1,2*sqrt(2)*x)/sqrt(2). ; 1,1,4,6,24,40,160,280,1120,2016,8064,14784,59136,109824,439296,823680,3294720,6223360,24893440,47297536,189190144,361181184,1444724736,2769055744,11076222976,21300428800,85201715200,164317593600,657270374400,1270722723840,5082890895360,9848101...
; $Id: bit_close_ei.asm,v 1.3 2015/01/19 01:32:44 pauloscustodio Exp $ ; ; Enterprise 64/128 1 bit sound functions ; ; (Close sound) and restore interrupts ; ; Stefano Bodrato - 2011 ; PUBLIC bit_close_ei EXTERN bit_irqstatus .bit_close_ei push hl ld hl,(bit_irqstatus) ex (sp),hl pop af ret po ...
; Evolution types EV_LEVEL EQU 1 EV_ITEM EQU 2 EV_TRADE EQU 3 EV_HAPPY EQU 4
; A259319: a(n) = 2*A002309(n). ; 2,164,1414,6216,19338,48620,105742,206992,374034,634676,1023638,1583320,2364570,3427452,4842014,6689056,9060898,12062148,15810470,20437352,26088874,32926476,41127726,50887088,62416690,75947092,91728054,110029304,131141306,155376028,183067710,214573632,250274882,290577124,335911366,3867...
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/execution/executor.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/common.hpp" #include "duckdb/common/mutex.h...
; A051578: a(n) = (2*n+4)!!/4!!, related to A000165 (even double factorials). ; 1,6,48,480,5760,80640,1290240,23224320,464486400,10218700800,245248819200,6376469299200,178541140377600,5356234211328000,171399494762496000,5827582821924864000,209792981589295104000,7972133300393213952000,318885332015728558080000,1339318394...
topirq_install SUBROUTINE lda topirq_rasterline+1 ora #$02 sta $ff0a lda topirq_rasterline sta $ff0b lda #<topirq_stub sta $fffe lda #>topirq_stub sta $ffff rts topirq_stub SUBROUTINE sta .exit+1 stx .exit+3 sty .exit+5 jsr topirq_handler inc $ff09 .exit lda #$00 ldx #$00 ldy #$00 rti ...
; A242426: floor(n! / n^3). ; 1,0,0,0,0,3,14,78,497,3628,29990,277200,2834328,31770514,387459072,5108103000,72397196844,1097800704000,17735107218083,304112751022080,5516784599040000 mov $1,$0 add $0,1 fac $1 div $1,$0 div $1,$0 mov $0,6 lpb $0,1 mov $0,3 mul $1,3 lpe div $1,3
; A047329: Numbers that are congruent to {1, 3, 5, 6} mod 7. ; 1,3,5,6,8,10,12,13,15,17,19,20,22,24,26,27,29,31,33,34,36,38,40,41,43,45,47,48,50,52,54,55,57,59,61,62,64,66,68,69,71,73,75,76,78,80,82,83,85,87,89,90,92,94,96,97,99,101,103,104,106,108,110,111 mul $0,7 add $0,6 div $0,4
/* Copyright (C) 2015-present The DotCpp Authors. This file is part of .C++, a native C++ implementation of popular .NET class library APIs developed to facilitate code reuse between C# and C++. http://github.com/dotcpp/dotcpp (source) http://dotcpp.org (documentation) Licensed under the Apache License, Ver...
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Mult.asm // Multiplies R0 and R1 and stores the result in R2. // (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) // // This program only needs t...
lda {m1}+1 cmp #$80 ror {m1}+1 ror {m1}
; A005053: Expand (1-2*x)/(1-5*x). ; 1,3,15,75,375,1875,9375,46875,234375,1171875,5859375,29296875,146484375,732421875,3662109375,18310546875,91552734375,457763671875,2288818359375,11444091796875,57220458984375,286102294921875,1430511474609375,7152557373046875,35762786865234375,178813934326171875,894069671630859375,447...
; ; Copyright (c) 2020 Bitdefender ; SPDX-License-Identifier: Apache-2.0 ; [BITS 32] ; ; section .text global _HvVmcall _HvVmcall: push ebp mov ebp, esp push esi push ebx push edi push ebx mov eax, [ebp+8] mov ecx, [ebp+12] mov edx, [ebp+16] mov esi, [ebp+20] ...
; A170542: Number of reduced words of length n in Coxeter group on 5 generators S_i with relations (S_i)^2 = (S_i S_j)^47 = I. ; 1,5,20,80,320,1280,5120,20480,81920,327680,1310720,5242880,20971520,83886080,335544320,1342177280,5368709120,21474836480,85899345920,343597383680,1374389534720,5497558138880,21990232555520,87...
;; ;; Copyright (c) 2018-2021, Intel Corporation ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, ;; this list of conditions and...
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas ; ; See "nirvana+.h" for further details ; ---------------------------------------------------------------- ; void NIRVANAP_fillT_raw(unsigned char attr, unsigned char lin, unsigned char c...
; uchar __FASTCALL__ *zx_saddrcleft(void *pixeladdr) ; aralbrec 06.2007 PUBLIC zx_saddrcleft .zx_saddrcleft ; enter: hl = valid screen address ; exit : carry = moved off screen ; hl = new screen address one character left with line wrap ; uses : af, hl ld a,l dec l or a ret nz ld a,h su...
; A166454: Triangle read by rows: T(n, k) = (1/2)*(A007318(n,k) - A047999(n,k)). ; Submitted by Jamie Morken(s4) ; 1,1,1,2,3,2,2,5,5,2,3,7,10,7,3,3,10,17,17,10,3,4,14,28,35,28,14,4,4,18,42,63,63,42,18,4,5,22,60,105,126,105,60,22,5,5,27,82,165,231,231,165,82,27,5,6,33,110,247,396,462,396,247,110,33,6,6,39,143,357,643,85...
db "VIRTUAL@" ; species name db "An artificial" next "#MON created" next "due to extensive" page "research, it can" next "perform only what" next "is in its program.@"
; A017463: a(n) = (11*n + 6)^3. ; 216,4913,21952,59319,125000,226981,373248,571787,830584,1157625,1560896,2048383,2628072,3307949,4096000,5000211,6028568,7189057,8489664,9938375,11543176,13312053,15252992,17373979,19683000,22188041,24897088,27818127,30959144,34328125,37933056,41781923,45882712,50243409,54872000,5977647...
#include<vector> #include<list> #include<map> #include<bitset> #include<cassert> #include<algorithm> template<typename T, typename Block> class Dependency { typedef std::vector<T> ProducerList; typedef std::vector<T> ConsumerList; typedef std::vector<T> PathList; typedef std::list<Block> BlockList; typedef...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r15 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0x153ac, %r15 nop dec %r12 mov $0x6162636465666768, %rdi movq %rdi, (%r15) and %rax, %rax lea addresses_WC_ht+0x9d34, %rcx nop xor %r13, %r13 mov (%rcx), %r10 nop nop nop ...
#include <Switch/Switch> using namespace System; namespace Examples { class TextReader abstract_ { public: virtual int ReadByte() = 0; string ReadLine() { string line; for (int b = ReadByte(); b != -1 && b != '\n'; b = ReadByte()) line += as<char32>(b); return line; } s...
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. include <AsmMacros.inc> include AsmConstants.inc extern ExternalMethodFixupWorker:proc extern ProcessCLRException:proc ifdef FEATURE_READYTORUN extern DynamicHelperWork...
; This patch modifies the game's code to make certain items progressive, so even if you get them out of order, they will always be upgraded, never downgraded. ; (Note that most of the modifications for this are in the make_items_progressive function of tweaks.py, not here.) ; Swap out the item ID of progressive item...
; A286283: a(n) = floor(7*n^2/48). ; 0,0,0,1,2,3,5,7,9,11,14,17,21,24,28,32,37,42,47,52,58,64,70,77,84,91,98,106,114,122,131,140,149,158,168,178,189,199,210,221,233,245,257,269,282,295,308,322,336,350,364,379,394,409,425,441,457,473,490,507,525,542,560,578,597,616,635,654,674,694,714,735,756,777,798,820,842,864,887,910...
; ; Z88 Small C+ Run Time Library ; Long support functions ; ; ; aralbrec 01/2007 ; sped up some more ; ; djm 25/2/99 ; Rewritten for size and speed (untested, but should be OK) ; ; djm 22/3/99 Unsigned version SECTION code_l_sccz80 PUBLIC l_long_asr_u EXTERN l_lsr_dehl l_...
SECTION "Egg Moves 3", ROMX EggMovePointers3:: dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 dw NoEggMoves3 ...
#note: r40 (the exception handler) and r46 (the start of usermode code) must #be specified in hex (0xwhatever) #I just don't see any reason not to, and it makes programming the script #much nicer to deal with... #load exception handler lc r40, 0x80000050 leh r40 #enable exceptions cle #load TLB ent...
; A080827: Rounded up staircase on natural numbers. ; 1,3,5,9,13,19,25,33,41,51,61,73,85,99,113,129,145,163,181,201,221,243,265,289,313,339,365,393,421,451,481,513,545,579,613,649,685,723,761,801,841,883,925,969,1013,1059,1105,1153,1201,1251,1301,1353,1405,1459,1513,1569,1625,1683,1741,1801,1861,1923,1985,2049,2113,217...
; A031915: a(n) = prime(8*n - 7). ; 2,23,59,97,137,179,227,269,313,367,419,461,509,571,617,661,727,773,829,883,947,1009,1051,1103,1171,1229,1289,1327,1427,1471,1523,1579,1621,1697,1753,1823,1879,1951,2011,2081,2131,2207,2269,2333,2381,2437,2521,2591,2659,2699,2749,2803,2879,2953,3019,3083,3169,3229,3307,3359,3433,3499,...
; A061352: First row of array shown below. ; 1,2,6,7,5,6,8,9,5,6,6,7,1,2,0,1,3,4,0,1,1,2,6,7,5,6,8,9,5,6,6,7,1,2,0,1,3,4,0,1,1,2,6,7,5,6,8,9,5,6,6,7,1,2,0,1,3,4,0,1,1,2,6,7,5,6,8,9,5,6,6,7,1,2,0,1,3,4,0,1,1,2,6,7,5,6,8,9,5,6,6,7,1,2,0,1,3,4,0,1,1,2,6,7,5 add $0,5 cal $0,61353 ; First column of array shown in A061352. ...
; float __fspoly (const float x, const float d[], uint16_t n) SECTION code_clib SECTION code_fp_math32 PUBLIC cm32_sdcc_fspoly EXTERN m32_fspoly_callee .cm32_sdcc_fspoly ; evaluation of a polynomial function ; ; enter : stack = uint16_t n, float d[], float x, ret ; ; exit : dehl = 32-bit pro...
align macro cnop 0,\1 endm ; ======================================================================================= ; Sega CD Header (Based on Sonic CD's header) ; ======================================================================================= DiscType: dc.b 'SEGADISCSYSTEM ' ; Disc Type (Must be SEGADISC...
// // Created by nis on 19.01.17. // #include "uint_to_str.h" namespace util { size_t const get_length(uint32_t value) { if (value < 1e5) { if (value < 1e3) { if (value < 1e2) { if (value < 1e1) { return 1; } else ...
; A035008: Total number of possible knight moves on an (n+2) X (n+2) chessboard, if the knight is placed anywhere. ; 0,16,48,96,160,240,336,448,576,720,880,1056,1248,1456,1680,1920,2176,2448,2736,3040,3360,3696,4048,4416,4800,5200,5616,6048,6496,6960,7440,7936,8448,8976,9520,10080,10656,11248,11856,12480,13120,13776,14...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
; void *b_vector_init(void *p, size_t capacity, size_t max_size) SECTION code_adt_b_vector PUBLIC _b_vector_init EXTERN asm_b_vector_init _b_vector_init: pop af pop de pop bc pop hl push hl push bc push de push af jp asm_b_vector_init
; A322830: a(n) = 32*n^3 + 48*n^2 + 18*n + 1. ; 1,99,485,1351,2889,5291,8749,13455,19601,27379,36981,48599,62425,78651,97469,119071,143649,171395,202501,237159,275561,317899,364365,415151,470449,530451,595349,665335,740601,821339,907741,999999,1098305,1202851,1313829,1431431,1555849,1687275,1825901,1971919,2125521,2286...
global _start section .data name db 'Zara Ali', 0xa nameLen equ $-name section .text _start: ; Output name mov eax, 4 mov ebx, 1 mov ecx, name mov edx, nameLen int 0x80 ; Change the name value mov [name], dword 'Nuha' ; Output the new name mov eax, 4 mov ebx, 1 mov ecx, name mov edx, nameLen int 0x80 ...
SECTION code_fp_math16 PUBLIC _negf16 EXTERN cm16_sdcc_neg defc _negf16 = cm16_sdcc_neg
BITS 32 extern print_line global mystery1 global mystery2 global mystery3 global mystery4 global mystery5 global mystery6 global mystery7 global mystery8 global mystery9 section .text mystery1: push ebp mov ebp, esp xor ecx, ecx mov edi, [ebp+8] not ecx xor al, al cld repne sc...
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * https://aws.amazon.com/asl/ * * or in the "license" file accom...
; void dzx7_standard(void *src, void *dst) SECTION code_compress_zx7 PUBLIC _dzx7_standard EXTERN asm_dzx7_standard _dzx7_standard: pop af pop hl pop de push de push hl push af jp asm_dzx7_standard
; ; Put character to console ; ; fputc_cons(char c) ; ; ; $Id: fputc_cons.asm,v 1.6 2016-05-15 20:15:46 dom Exp $ ; SECTION code_clib PUBLIC fputc_cons_native ; PUBLIC _fputc_cons INCLUDE "target/test/def/test_cmds.def" .fputc_cons_native ld hl,2 add hl,sp ld l,(hl) ld h,0 ld a,CMD_PRINTCHA...
// init @256 //SP = 256 D=A @SP M=D @Sys.init //call Sys.init 0 which can't be recurisive and has no return command 0;JMP (__Sys.init$return__) {infloop} @LCL //TODO: @ARG //TODO: @16383 //TODO: heap D=A @THIS M=D @THAT M=D @{main} //TODO: main 0;JMP //Arithmwtic & Logic @SP //pop arg2 M=M-1 A=M // A now at the to...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1220b, %rdx nop nop cmp %rbx, %rbx movb $0x61, (%rdx) and %rax, %rax lea addresses_D_ht+0x538b, %rdi nop nop nop nop and %r10, %r10 mov $0x6162636465666768, %rbp mo...
.include "LKS/MC_OAM.asm" .include "LKS/MC_Joypad.asm" .include "LKS/MC_Printf.asm" .include "LKS/MC_Load.asm" .include "LKS/MC_Clear.asm" .include "LKS/MC_BG.asm" .include "LKS/MC_DMA.asm" .include "LKS/MC_PAL.asm" .include "LKS/variable.asm"
/** * \file * \copyright * Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ #include "CreateThermoMechanicalPhaseFiel...
; Hyperion 64-Bit container.exe include 'image_base.inc' include 'main_prolog.inc' ;format PE64 ... entry start include '..\..\..\Fasm\INCLUDE\win64a.inc' include 'pe.inc' ;automatically generated by hyperion cpp stub include 'key_size.inc' include 'infile_size.inc' include 'image_size.inc' ;--- SIZE_DATA_SECTION_NA...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_ProjPoop_Shapeshifter_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //------------------------------------------------...
; File to tests address file association when executing self modifyfing code. ; In SLD files there is only the address of the start of an instruction. ; If the instruction is modified by the program also addresses "inside" ; the original instruction may occur. ; If such an new instruction is executed DeZog would create...
.file "deflate.c" .section .rodata .align 32 .globl deflate_copyright .type deflate_copyright, @object deflate_copyright: .string " deflate 1.2.8 Copyright 1995-2013 Jean-loup Gailly and Mark Adler " .size deflate_copyright, 68 # ---------------------- .section .data.rel.ro.local,"aw",@progbits .al...
copyright zengfr site:http://github.com/zengfr/romhack 006080 tst.b ($53,A6) 006084 ble $60e0 [123p+ 53, enemy+53] 01302C move.b ($a,A0), ($53,A6) 013032 tst.w (A0) [123p+ 53, enemy+53, etc+53, item+53] 0142BE tst.b ($53,A0) 0142C2 beq $142d8 [123p+ 53, enemy+53, item+53] 01439C bset #$7, ($...
; A066728: a(n) is the number of integers of the form (n+k+n*k)/(n-k) for k = 1,2,...,n-1. ; Submitted by Jon Maiga ; 0,1,1,3,1,4,2,4,2,7,1,7,3,5,3,8,1,11,3,7,3,9,2,9,5,7,3,15,1,13,3,6,7,11,3,11,3,9,3,19,1,15,5,7,5,11,2,17,5,11,3,15,3,19,7,9,3,15,1,15,5,7,11,15,3,15,3,15,3,29,1,14,5,7,11,15,3,23,4,11,4,15,3,15,7,9,3,29...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0xd8cf, %rsi lea addresses_UC_ht+0x299c, %rdi nop nop nop inc %rdx mov $28, %rcx rep movsb nop nop nop nop nop xor $22690, %r12 lea addresses_A_ht+0x1e25f, %rsi lea addresses_...
lda #>{c1} cmp {c2}+1,y bne !+ lda #<{c1} cmp {c2},y beq {la1} !:
;Write an instruction sequence to divide the signed 16-bit number stored at memory locations ;$1005,$1006 by the 16-bit signed number stored at memory locations $1020,$1021 and ;store the quotient and remainder at $1030,$1031 and $1032,$1033, respectively. org $800 ldd $1005 ldx $1020 idivs stx $1030 std $...
; A109047: a(n) = lcm(n, 6). ; 0,6,6,6,12,30,6,42,24,18,30,66,12,78,42,30,48,102,18,114,60,42,66,138,24,150,78,54,84,174,30,186,96,66,102,210,36,222,114,78,120,246,42,258,132,90,138,282,48,294,150,102,156,318,54,330,168,114,174,354 mov $1,$0 gcd $1,6 div $0,$1 mul $0,6
; Copyright 2019 IBM 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 to in writi...
; A018487: Divisors of 496. ; Submitted by Jon Maiga ; 1,2,4,8,16,31,62,124,248,496 mov $1,2 pow $1,$0 sub $0,5 mov $2,2 pow $2,$0 sub $1,$2 mov $0,$1
#include "sub_menu_item_controller.h" namespace win { SubMenuItemController::SubMenuItemController(HMENU hMenuParent, int commandId, std::shared_ptr<SubMenuItem> subMenuItem) : MenuItemControllerBase( hMenuParent, commandId ), mSubMenuItem( subMenuItem ) { mHMenu = ::CreatePopupMenu(); mSubMenuItem->text....
; A008482: Coefficients in expansion of (x-1)*(1+x)^(n-1), n > 0. ; Submitted by Christian Krause ; 0,-1,1,-1,0,1,-1,-1,1,1,-1,-2,0,2,1,-1,-3,-2,2,3,1,-1,-4,-5,0,5,4,1,-1,-5,-9,-5,5,9,5,1,-1,-6,-14,-14,0,14,14,6,1,-1,-7,-20,-28,-14,14,28,20,7,1,-1,-8,-27,-48,-42,0,42,48,27,8,1,-1,-9,-35,-75,-90,-42,42,90,75,35,9,1,-1,-...
TITLE DECIMAL: READ WRITE INCLUDE DES_NUM.ASM .MODEL SMALL .STACK 100H .CODE MAIN PROC ;INPUT A NUMBER CALL INDEC PUSH AX ;MOVE CURSOR TO NEXT LINE MOV AH , 2 MOV DL , 0DH INT 21H MOV DL ,0AH INT 21H ;OUTPUT A NUMBER POP AX CALL OUTDEC ;EXIT MOV AH,4CH INT 21H MAIN ENDP END MAIN
dnl AMD K6 mpn_mul_basecase -- multiply two mpn numbers. dnl dnl K6: approx 9.0 cycles per cross product on 30x30 limbs (with 16 limbs/loop dnl unrolling). dnl Copyright (C) 1999, 2000 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free softw...
Name: kart-enemy-p.asm Type: file Size: 25482 Last-Modified: '1992-08-06T07:16:58Z' SHA-1: 518F79F6F50238F5FD30317AA82344E3213BA1DF Description: null
org 0100h jmp LABEL_START ; 导入头文件 %include "loader.inc" ; 挂载点相关的常量 %include "fat12hdr.inc" ; 导入FAT12相关的常量 %include "pm.inc" ; 导入宏gdt [SECTION .gdt] ; GDT LABEL_GDT: descriptor 0, 0, 0 LABEL_DESC_CODE32: descriptor 0, 0xFFFFF, DA_CR | DA_32 | DA_LIMIT_4K ; 0~4G,32位可读代码段,粒度为4KB ; LABEL_DESC_CODE3...
// Copyright (c) 2012 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. #include "net/disk_cache/rankings.h" #include "base/metrics/histogram.h" #include "net/disk_cache/backend_impl.h" #include "net/disk_cache/disk_forma...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Kernel Library FILE: Graphics/graphicsCreateBitmap.asm AUTHOR: Jim DeFrisco, 5/23/90 ROUTINES: Name Description ---- ----------- CreateBi...
; REpsych ; domas, @xoreaxeaxeax ; This file serves as the program effect. A more sophisticated approach would ; modify the CFG of existing code; for now, we generate new code to create the ; CFG, and simply connect it to existing code (this). extern printf code: push ebp mov ebp, esp push pusheen call printf add ...
; A054113: T(2n,n), array T as in A054110. ; 1,5,17,57,197,701,2549,9413,35153,132393,501905,1912769,7321081,28122281,108355481,418590521,1620751301,6287963741,24438234341,95128761941,370821819581,1447337568461,5655535495901,22122396951101 lpb $0 mov $2,$0 sub $0,1 add $2,$0 bin $2,$0 add $1,$2 lpe mov $0,$1...
; max number .386 .model flat,stdcall .stack 4096 INCLUDE Irvine32.inc ExitProcess proto,dwExitCode:dword .data num1 DWORD 2367 num2 DWORD 4792 .code main proc mov eax, [num1] call WriteBin mov al, 10 call WriteChar mov eax, [num2] call WriteBin mov al, 10 call WriteChar mov ebx, [num1]...
; A035492: Position of card 1 after n-th shuffle in Guy's shuffling problem (A035485). ; Submitted by Jon Maiga ; 1,2,4,1,2,4,8,1,2,4,8,16,7,14,28,25,17,34,31,23,5,10,20,40,31,11,22,44,31,3,6,12,24,48,27,54,35,70,63,47,13,26,52,17,34,68,43,86,75,51,1,2,4,8,16,32,64,13,26,52,104,85,45,90,51,102,71,7,14,28,56,112,79,11,2...
/* * PKCS#11 Mechanism * (C) 2016 Daniel Neus, Sirrix AG * (C) 2016 Philipp Weber, Sirrix AG * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/internal/p11_mechanism.h> #include <botan/scan_name.h> #include <botan/parsing.h> #include <botan/emsa.h> #include <tuple> namespace...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_AF|FLAG_OF ;TEST_FILE_META_END ; Shr32RI mov eax, 0x4096 ;TEST_BEGIN_RECORDING shr eax, 0x6 ;TEST_END_RECORDING
//===------- CGObjCMac.cpp - Interface to Apple Objective-C Runtime -------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
ORG 0000H SETB P3.5 CLR P1.2 MOV P2, #00H MOV TMOD, #01100010B ; Counter-1 Mode-2 & Timer-0 Mode-1 MOV TH1, #00H CLR A SETB TR1 INC A HERE: MOV A, TL1 MOV P2, A ; Gives the value of TL1 to P2 CPL P3.5 MOV R7, #255 ACALL DELAY CJNE A, #0AH, HERE ; 10 number of counts done CLR TF1 CLR TR1 AGAIN: MOV ...
.NOLIST #define EQU .equ #define equ .equ #define END .end #define end .end #include "ti83plus.inc" .LIST .org 9D93h .db $BB,$6D ld a,0 ld (CURCOL),a ld (CURROW),a ld hl,text B_CALL(_PutS) B_CALL(_NewLine) ret text: .db "Hello World",0 .end end
LDA #$03 JMP there BRK BRK BRK there: STA $0200
// #include <eosio/transaction.hpp> // #include <eosio.system/native.hpp> #include "exchange_state.hpp" #include "../src/exchange_state.cpp" #include <eosio/crypto.hpp> uint128_t combine_ids(const uint64_t &x, const uint64_t &y) { return (uint128_t{x} << 64) | y; }; /*! \brief Структура основных ...
; A323048: Sums of no more than two 5-smooth numbers. ; 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,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,9...
; A131878: Row sums of triangle A131876. ; 1,22,57,106,169,246,337,442,561,694,841,988,1163,1352,1555,1772,2003,2248,2507,2780,3067,3368,3683,4012,4355,4712,5083,5468,5867,6280,6707,7148,7603,8072,8569,9066,9577,10102,10641 mov $2,1 mov $3,$0 mov $7,$0 add $0,1 add $2,$3 mul $3,2 mov $6,2 lpb $0,1 mov $0,$3 sub $0...
; ; Generic pseudo graphics routines for text-only platforms ; Version for the 2x3 graphics symbols ; ; Written by Stefano Bodrato 19/12/2006 ; ; ; Invert pixel at (x,y) coordinate. ; ; ; $Id: xorpixl.asm,v 1.4 2015/01/19 01:32:51 pauloscustodio Exp $ ; INCLUDE "graphics/grafix.inc" PUBLIC xo...
/* Copyright 2019-2021 Canaan Inc. * * 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 t...
; A024920: a(n) = Sum_{k=1..n} (n-k) * floor(n/k). ; 0,2,7,17,29,51,71,104,138,183,220,293,340,409,486,580,646,767,843,981,1099,1221,1317,1525,1653,1802,1961,2168,2297,2568,2709,2951,3154,3359,3578,3942,4118,4352,4598,4978,5176,5576,5786,6136,6504,6798,7030,7574,7862,8270,8609,9034,9303,9834,10209,10768,11155,11540,118...
; A189461: n+[nr/s]+[nt/s]; r=2, s=sqrt(5), t=1+sqrt(5). ; Submitted by Jon Maiga ; 2,5,9,12,16,19,23,26,30,32,35,39,42,46,49,53,56,60,62,65,69,72,76,79,83,86,90,93,95,99,102,106,109,113,116,120,123,125,129,132,136,139,143,146,150,153,157,159,162,166,169,173,176,180,183,187,189,192,196,199,203,206,210,213,217,220,222,2...
; A021622: Decimal expansion of 1/618. ; Submitted by Christian Krause ; 0,0,1,6,1,8,1,2,2,9,7,7,3,4,6,2,7,8,3,1,7,1,5,2,1,0,3,5,5,9,8,7,0,5,5,0,1,6,1,8,1,2,2,9,7,7,3,4,6,2,7,8,3,1,7,1,5,2,1,0,3,5,5,9,8,7,0,5,5,0,1,6,1,8,1,2,2,9,7,7,3,4,6,2,7,8,3,1,7,1,5,2,1,0,3,5,5,9,8 seq $0,246057 ; a(n) = (5*10^n - 2)/3. div $0,10...
/* * Copyright 2015 Facebook, Inc. * * 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...