text
stringlengths
1
1.05M
.include "Actions/action_upload_vramdata.asm" .include "Managers/inputmanager.asm" .include "Managers/modemanager.asm" .include "Managers/vdpmanager.asm" .include "Modules/debounce_module.asm" .include "Modules/execute_buffer.asm" .include "Modules/profiler_module.asm" .include "UI/modeselect_container.asm" .in...
db 0 ; species ID placeholder db 50, 65, 107, 86, 105, 107 ; hp atk def spd sat sdf db ELECTRIC, ICE ; type db 45 ; catch rate db 154 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_UNKNOWN ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/rotom...
; float _floorf (float number) __z88dk_fastcall SECTION code_clib SECTION code_fp_am9511 PUBLIC asm_floorf EXTERN asm_am9511_floor_fastcall ; Takes the closest lower integer ; ; enter : stack = ret ; DEHL = sccz80_float number ; ; exit : DEHL = floor(sccz80_float) ; ; ...
szMessage db "V0idPointer was here", 0 szWindows db " Windows ", 0 szPressAnyKey db "Press any key to continue", 0 szMessage1 db "A fatal exception 0E has occurred at 0028:C0034B23. The current", 0 szMessage2 db "application will be terminated.", 0 szInstruction1 db "* Press any key to terminate the current application...
; A329513: G.f. = (1+x)^2*(1+2*x^2-x^3)/(1-x). ; 1,3,6,9,9,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8 mul $0,2 mov $1,4 add $1,$0 mul $0,7 trn $1,10 add $1,5 div $0,$1 add $0,1
map_attributes: MACRO ;\1: map name ;\2: map id ;\3: border block ;\4: connections: combo of NORTH, SOUTH, WEST, and/or EAST, or 0 for none CURRENT_MAP_WIDTH = \2_WIDTH CURRENT_MAP_HEIGHT = \2_HEIGHT \1_MapAttributes:: db \3 db CURRENT_MAP_HEIGHT, CURRENT_MAP_WIDTH db BANK(\1_Blocks) dw \1_Blocks db BANK(\1_MapScr...
; A048395: Sum of consecutive nonsquares. ; 0,5,26,75,164,305,510,791,1160,1629,2210,2915,3756,4745,5894,7215,8720,10421,12330,14459,16820,19425,22286,25415,28824,32525,36530,40851,45500,50489,55830,61535,67616,74085,80954,88235,95940,104081,112670,121719,131240,141245,151746,162755,174284,186345,198950,212111,225840,2...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %r8 push %r9 push %rax lea addresses_D_ht+0xfe35, %r11 nop nop nop nop nop dec %r14 movw $0x6162, (%r11) nop nop nop and %r9, %r9 lea addresses_normal_ht+0x9d45, %r14 nop add %r9, %r9 mov (%r14), %r10d nop nop nop add %r11, %r11 l...
object_const_def ; object_event constants const VERMILIONPORT_SAILOR1 const VERMILIONPORT_SAILOR2 const VERMILIONPORT_SUPER_NERD VermilionPort_MapScripts: db 2 ; scene scripts scene_script .DummyScene0 ; SCENE_DEFAULT scene_script .LeaveFastShip ; SCENE_VERMILIONPORT_LEAVE_SHIP db 1 ; callbacks callback MAPC...
; A053469: a(n) = n*6^(n-1). ; 1,12,108,864,6480,46656,326592,2239488,15116544,100776960,665127936,4353564672,28298170368,182849716224,1175462461440,7522959753216,47958868426752,304679870005248,1929639176699904,12187194800209920,76779327241322496,482612914088312832,3027299188372144128,18953525353286467584,1184595334580...
; Options: ; startup=1 --> RAM mode ; startup=2 --> ROM mode (position code at location 0 and provide minimal interrupt services) ; ; CRT_ORG_CODE = start address ; CRT_ORG_BSS = address for bss variables ; CRT_MODEL = 0 (RAM), 1 = (ROM, code copied), 2 = (ROM, code comp...
%ifdef CONFIG { "RegData": { "RAX": "0x65666768", "RBX": "0x6162636465666768", "RCX": "0x75767778", "RSI": "0x7172737475767778" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x4142434445464748 mov [rdx + 8 * 0], rax mov rax, 0x5152535455565758 mov [rdx...
SECTION code_clib SECTION code_z80 PUBLIC asm_z80_push_registers asm_z80_push_registers: ; push all z80 registers onto the stack ; must be called ; exit : hl = return address ; ; uses : hl ex (sp),hl push af push bc push de exx ex af,af' push af push bc push de push...
; A158874: a(n) = (n + 4)*(n + 3)*(n + 2)*(n + 1)*n / 5 = 24*A000389(n+4). ; 0,24,144,504,1344,3024,6048,11088,19008,30888,48048,72072,104832,148512,205632,279072,372096,488376,632016,807576,1020096,1275120,1578720,1937520,2358720,2850120,3420144,4077864,4833024,5696064,6678144,7791168,9047808,10461528,12046608,1381816...
_DoItemEffect:: ld a, [wCurItem] ld [wNamedObjectIndexBuffer], a call GetItemName call CopyName1 ld a, 1 ld [wItemEffectSucceeded], a ld a, [wCurItem] dec a ld hl, ItemEffects rst JumpTable ret ItemEffects: ; entries correspond to item ids dw PokeBallEffect ; MASTER_BALL dw PokeBallEffect ; ULTR...
/** @file A brief file description @section license License 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 und...
; A169432: Number of reduced words of length n in Coxeter group on 35 generators S_i with relations (S_i)^2 = (S_i S_j)^32 = I. ; 1,35,1190,40460,1375640,46771760,1590239840,54068154560,1838317255040,62502786671360,2125094746826240,72253221392092160,2456609527331133440,83524723929258536960,2839840613594790256640,965545...
;================================================================================ ; Randomize Book of Mudora ;-------------------------------------------------------------------------------- LoadLibraryItemGFX: %GetPossiblyEncryptedItem(LibraryItem, SpriteItemValues) STA $0DA0, X ; Store item type JSL.l PrepDynamicT...
/****************************************************************************** * * Project: OpenGIS Simple Features Reference Implementation * Purpose: Implementation of OGRGeoJSONReader class (OGR GeoJSON Driver). * Author: Mateusz Loskot, mateusz@loskot.net * ***********************************************...
%macro print 2 mov rax,01; mov rdi,01; mov rsi,%1; mov rdx,%2; syscall; %endmacro %macro read 2 mov rax,00; mov rdi,00; mov rsi,%1; mov rdx,%2; syscall; %endmacro %macro fopen 1 mov rax,02; //SYS_OPEN mov rdi,%1; //file-name mov rsi,02; //O_RDWR mov ...
; include everything here for the library INCLUDE "lib/macros.asm" INCLUDE "lib/engine.asm" INCLUDE "lib/commands.asm" ;INCLUDE "lib/frequency.asm" INCLUDE "lib/registers.asm" INCLUDE "lib/tables.asm" INCLUDE "lib/utils.asm" tbe_end: INCLUDE "lib/wram.asm" PRINTT "ROM usage: " PRINTI tbe_end - tbe_begin PRINTT "\nR...
; A099545: Odd part of n, modulo 4. ; 1,1,3,1,1,3,3,1,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,3,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,1,1,1,3,3,1,3,3,3,1,1,3,1,1,3,3,3,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,1,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,3,1,1,3,3,1,3,3,3,1,1,3,1,1,3 lpb $0,1 add $0,1 mov $1,$0 add $1,1 div $1,2 gcd $0,$1 sub $0,1 ...
; A165560: The arithmetic derivative of n, modulo 2. ; 0,0,1,1,0,1,1,1,0,0,1,1,0,1,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,1,1,1,0,0,1,0,0,1,1,0,0,1,1,1,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,1,0,0,1,1,0,1,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,0,1,0,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,0,1,1,0,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,1,0...
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 3.6.0 #9615 (MINGW64) ;-------------------------------------------------------- ; PIC16 port for the Microchip 16-bit core micros ;-------------------------------------------------------- list ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r8 push %rax push %rcx push %rsi lea addresses_A_ht+0x15bcc, %r14 nop add $3850, %r12 mov $0x6162636465666768, %rax movq %rax, (%r14) sub $6885, %rcx lea addresses_normal_ht+0x988c, %r8 cmp $4488, %rax movups (%r8), %xmm2 vpextrq $0, %xmm2...
/* Do not remove this header/ copyright information. * * Copyright © Trilobyte Software Engineering GmbH, Berlin, Germany 2010-2011. * You are allowed to modify and use the source code from * Trilobyte Software Engineering GmbH, Berlin, Germany for free if you are not * making profit with it or its adaption. Else ...
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021 Marco Spedaletti (asimov@mclink.it) ; * ; * Licensed un...
; A116092: Expansion of 1/sqrt(1+8*x+64*x^2). ; Submitted by Christian Krause ; 1,-4,-8,224,-1184,-2944,84736,-467968,-1235456,35956736,-202108928,-548651008,16063381504,-91151859712,-251452325888,7389369073664,-42180470767616,-117581870006272,3464100777558016,-19854347412176896,-55753417460547584,1645577388148391936,-...
INCLUDE "clib_cfg.asm" SECTION code_clib SECTION code_math PUBLIC l_mulu_32_32x32 ; compute: dehl = dehl * dehl' ; alters : af, bc, de, hl, bc', de', hl', ix IF __CLIB_OPT_IMATH <= 50 EXTERN l_small_mul_32_32x32 defc l_mulu_32_32x32 = l_small_mul_32_32x32 ENDIF IF __CLIB_OPT_IMATH > 50 EXTE...
;; encoding: utf-8 ;; ff3_b34_play_effect.asm ;; ;; replaces code for controling various effects ;; ;; version: ;; 0.6 (2017-12-17) ;====================================================================================================== ff3_b34_play_effect_begin: INIT_PATCH $34,$8411,$8460 battle.play_effec...
; -------------------------------------- ; Test SPHL. ; ; SPHL SP=HL ... Set SP to same value as H:L ; ...
lc r4, 0x00000080 lc r5, 0x00013d79 eq r6, r4, r5 halt #@expected values #r4 = 0x00000080 #r5 = 0x00013d79 #r6 = 0x00000000 #pc = -2147483628 #e0 = 0 #e1 = 0 #e2 = 0 #e3 = 0
; Does not need to be page aligned ; Access using: ; sin(x) = lda slsb,x | lda smsb,x ; cos(x) = lda clsb,x | lda cmsb,x ;---------------------------------------------------------------------------------------------------------- ; sin/cos lookup table ;---------------------------------------------------------------...
/** * This file is part of the "clip" project * Copyright (c) 2018 Paul Asmuth * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Unless required by applicable law or agreed to in writing, software * distributed under the ...
; A020873: a(n) = number of cycles in Moebius ladder M_n. ; 2,3,7,15,29,53,95,171,313,585,1115,2159,4229,8349,16567,32979,65777,131345,262451,524631,1048957,2097573,4194767,8389115,16777769,33555033,67109515,134218431,268436213,536871725,1073742695,2147484579,4294968289,8589935649,17179870307,34359739559,68719477997,13...
; A091685: Sieve out 6n+1 and 6n-1. ; 0,1,0,0,0,5,0,7,0,0,0,11,0,13,0,0,0,17,0,19,0,0,0,23,0,25,0,0,0,29,0,31,0,0,0,35,0,37,0,0,0,41,0,43,0,0,0,47,0,49,0,0,0,53,0,55,0,0,0,59,0,61,0,0,0,65,0,67,0,0,0,71,0,73,0,0,0,77,0,79,0,0,0,83,0,85,0,0,0,89,0,91,0,0,0,95,0,97,0,0 mov $1,1 mov $2,24 gcd $2,$0 bin $1,$2 mul $1,$0 mo...
#include <iostream> #include "../GUI/Graph.h" #include "../GUI/Simple_window.h" class Bezier : public Shape { public: Bezier(Point p1, Point p2, Point p3, int t) { double rate = 1.0 / (double)t; for (double locT = 0.0; locT <= 1.0; locT += rate) { double inv = 1 - locT; ...
; SUBROUTINE: PRINT STRING ; Expected to be in bx ; Must be null terminated print_string: pusha ; Set TTY mode mov ah, 0x0e print_string_start: ; Note: bx is the base address for the string mov al, [bx] ; Check for null terminator cmp al, 0 je print_string_done ; Call print interrupt (al already has th...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft %> <%docstring>getresuid32(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str Invokes the syscall getresuid32. See 'man 2 getresuid32' for more information. Arguments: vararg(int): vararg Returns: long </%docstring...
; A084301: a(n) = sigma(n) mod 6. ; 1,3,4,1,0,0,2,3,1,0,0,4,2,0,0,1,0,3,2,0,2,0,0,0,1,0,4,2,0,0,2,3,0,0,0,1,2,0,2,0,0,0,2,0,0,0,0,4,3,3,0,2,0,0,0,0,2,0,0,0,2,0,2,1,0,0,2,0,0,0,0,3,2,0,4,2,0,0,2,0,1,0,0,2,0,0,0,0,0,0,4,0,2,0,0,0,2,3,0,1,0,0,2,0,0,0,0,4,2,0,2,2,0,0,0,0,2,0,0,0,1,0,0,2,0,0,2,3,2,0,0,0,4,0,0,0,0,0,2,0,0,0,...
/* Copyright 2015 The Chromium OS 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 <common/image.h> #include <stddef.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/types.h>...
; A131728: a(4n) = n, a(4n+1) = 2n+1, a(4n+2) = n+1, a(4n+3) = 0. ; 0,1,1,0,1,3,2,0,2,5,3,0,3,7,4,0,4,9,5,0,5,11,6,0,6,13,7,0,7,15,8,0,8,17,9,0,9,19,10,0,10,21,11,0,11,23,12,0,12,25,13,0,13,27,14,0,14,29,15,0,15,31,16,0,16,33,17,0,17,35,18,0,18,37,19,0,19,39,20,0,20,41,21,0,21 mov $2,$0 add $2,2 mov $1,$2 bin $1,2 div...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld b, 91 call lwaitly_b ld a, b1 ldff(40), a ld a, 07 ldff(4b), a ld c, 41 ld b, 03 lbegin_waitm3: ldff a, (c) and a, b cmp a, b jrnz lbegin_waitm3 ld a, 20 ldff(c), a xor a, a ldff(0f), a l...
#include <bits/stdc++.h> using namespace std; long long a,b; int main(){ cin >> a >> b; if ( a == 0 && b == 0) cout << "NO\n"; else if (abs(b-a) == 1 or abs(b-a) == 0) cout << "YES\n"; else cout << "NO\n"; return 0; }
;----------------------------------------------------------; ; BOS kernel Christoffer Bubach, 2005. ; ;----------------------------------------------------------; ; ; ; Do everything related to 16-bit here... :) ; ; ...
%include "macros/patch.inc" %include "macros/datatypes.inc" %include "TiberianSun.inc" gbool ScrapMetal, false sstring str_ScrapExplosion, "ScrapExplosion" hack 0x0063C4E1 ; UseScrapMetalExplosion cmp byte[ScrapMetal], 1 jnz .out push str_ScrapExplosion jmp 0x0063C4E6 .out: push 0x006F6BEC jm...
; A010166: Continued fraction for sqrt(95). ; 9,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1,18,1,2,1 seq $0,10197 ; Continued fraction for sqrt(138). ...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_FPU_PE|FLAG_FPU_C1 ;TEST_FILE_META_END ; set up st0 to be PI FLDPI ;TEST_BEGIN_RECORDING lea rdi, [rsp-08] mov word [rdi], 0x0001 FIADD word [rdi] mov edi, 0x0 ;TEST_END_RECORDING
/** * Copyright 2019 Huawei Technologies Co., Ltd * * 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...
db DEX_GASTLY ; pokedex id db 30 ; base hp db 35 ; base attack db 30 ; base defense db 80 ; base speed db 100 ; base special db GHOST ; species type 1 db POISON ; species type 2 db 190 ; catch rate db 95 ; base exp yield INCBIN "pic/ymon/gastly.pic",0,1 ; 77, sprite dimensions dw GastlyPicFront dw GastlyPicBack ; attac...
_ls: file format elf32-i386 Disassembly of section .text: 00000000 <main>: close(fd); } int main(int argc, char *argv[]) { 0: f3 0f 1e fb endbr32 4: 8d 4c 24 04 lea 0x4(%esp),%ecx 8: 83 e4 f0 and $0xfffffff0,%esp b: ff 71 fc pushl -0x4(%ecx) ...
.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 b, 88 call lwaitly_b ld a, 90 ldff(45), a ld a, 40 ldff(41), a ld a, 00 ld(8000), a ld a, 01 ld(c000), a ld a, c0 ldff(51), a xor a, a ...
; A020713: Pisot sequences E(5,9), P(5,9). ; 5,9,16,28,49,86,151,265,465,816,1432,2513,4410,7739,13581,23833,41824,73396,128801,226030,396655,696081,1221537,2143648,3761840,6601569,11584946,20330163,35676949,62608681,109870576,192809420,338356945,593775046,1042002567,1828587033,3208946545,5631308624,9882257736,17342153...
// 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 "base/command_line.h" #include "base/location.h" #include "base/single_thread_task_runner.h" #include "base/strings/stringprintf.h" #include ...
_init: file format elf32-i386 Disassembly of section .text: 00000000 <main>: char *argv[] = { "sh", 0 }; int main(void) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp ...
; ; jmemdosa.asm ; ; Copyright (C) 1992, Thomas G. Lane. ; This file is part of the Independent JPEG Group's software. ; For conditions of distribution and use, see the accompanying README file. ; ; This file contains low-level interface routines to support the MS-DOS ; backing store manager (jmemdos.c). Routi...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "seal/memorymanager.h" #include "seal/util/numth.h" #include "seal/util/rns.h" #include "seal/util/uintarithmod.h" #include "seal/util/uintarithsmallmod.h" #include <stdexcept> #include <vector> #include "gtest/gte...
SECTION code_fp_math16 PUBLIC cm16_sccz80_ldexp EXTERN asm_f16_ldexp ; half_t ldexp(half_t x, int16_t pw2); .cm16_sccz80_ldexp ; Entry: ; Stack: half_t left, int right, ret ; Reverse the stack pop de ;my return pop bc ;int pop hl ...
// Test MAKEWORD() // Commodore 64 PRG executable file .file [name="makeword-1.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .segment Code ma...
%ifdef CONFIG { "RegData": { "RBX": "0x8000000000000000", "RCX": "0x0000000000000000", "RDX": "0xC000000000000000", "RSI": "0x4000000000000000", "R8": "0x1", "R9": "0x0", "R10": "0x0", "R11": "0x1" } } %endif mov rbx, 0x0000000000000001 mov rcx, 0x0000000000000001 mov rdx, 0x80000...
; ADRESSAGE DIRECT ; ADDITION ET STOCKAGE DE DONNE .text ldi 10h,AR0 ;CHARGER LA VALEUR DE @10H DANS AR0 ldi *+AR0(0),R0 ;CHARGER LA VALEUR DU POITEUR DE L'ADRESSE AR0(0=AR0)(1=11h)DANS R0 addi *+AR0(10h),R0 ;AJOUTER LA VALEUR DE DU POITEUR +10h = 20h EST METTRE LA VALEUR DANS R0 sti R0,*+AR0(20h) ;STOCKER...
#include <iostream> using namespace std; class Solution { public: int lengthOfLastWord(string s) { int count = 0; bool encounteredWord = false; for (int i = s.length() - 1; i >= 0; i--) { if (s[i] == ' ' && encounteredWord) { break; ...
; void sp1_ChangeSprType(struct sp1_cs *c, void *drawf) ; CALLER linkage for function pointers PUBLIC sp1_ChangeSprType EXTERN sp1_ChangeSprType_callee EXTERN ASMDISP_SP1_CHANGESPRTYPE_CALLEE .sp1_ChangeSprType pop bc pop de pop hl push hl push de push bc jp sp1_ChangeSprType_callee + ASMDISP_S...
; A010023: a(0) = 1, a(n) = 42*n^2 + 2 for n>0. ; 1,44,170,380,674,1052,1514,2060,2690,3404,4202,5084,6050,7100,8234,9452,10754,12140,13610,15164,16802,18524,20330,22220,24194,26252,28394,30620,32930,35324,37802,40364,43010,45740,48554,51452,54434,57500,60650,63884,67202,70604,74090,77660,81314,85052,88874,92780,96770,...
section text test: add n1 sub n1 jmp test2 ;pulo para rotulo invalido jmp test3 ;pulo para rotulo invalido jmp 5 section data n1: const 1 n2: space
/* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
; ; Z88dk Z88 Maths Library ; ; ; $Id: dne.asm,v 1.4 2016-06-22 19:55:06 dom Exp $ SECTION code_fp PUBLIC dne EXTERN fsetup EXTERN stkequcmp IF FORz88 INCLUDE "target/z88/def/fpp.def" ELSE INCLUDE "fpp.def" ENDIF ; TOS != FA? .dne call fsetup IF FORz88 fpp(FP_EQ) ELSE ld a,...
; A075664: Sum of next n cubes. ; Submitted by Jon Maiga ; 1,35,405,2584,11375,38961,111475,278720,627669,1300375,2516921,4604040,8030035,13446629,21738375,34080256,52004105,77474475,112974589,161603000,227181591,314375545,428825915,577295424,767828125,1009923551,1314725985,1695229480,2166499259,2745910125,3453402511,4...
; A165283: a(n) = (2*n + 1)*16^n. ; 1,48,1280,28672,589824,11534336,218103808,4026531840,73014444032,1305670057984,23089744183296,404620279021568,7036874417766400,121597189939003392,2089670227099910144,35740566642812256256,608742554432415203328,10330176681277348904960,174727559866176872906752,2946756685310658613346304,...
0x0000 (0x000000) 0x1800-0x4843 f:00014 d: 0 | A = 18499 (0x4843) 0x0002 (0x000004) 0x2913- f:00024 d: 275 | OR[275] = A 0x0003 (0x000006) 0x1800-0x4220 f:00014 d: 0 | A = 16928 (0x4220) 0x0005 (0x00000A) 0x2914- f:00024 d: 276 | OR[276] = A ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_A_ht+0x183b3, %rsi lea addresses_A_ht+0x17e03, %rdi nop nop nop nop nop xor $5358, %r8 mov $72, %rcx rep movsb nop nop nop nop nop add %r14, %r14 lea addresses_UC_ht+0x7233, %r9 nop add %rdi, %...
; A092067: a(n) is the smallest number m such that m > 1 and m divides n^m + 1. ; 2,3,2,5,2,7,2,3,2,11,2,13,2,3,2,17,2,19,2,3,2,23,2,5,2,3,2,29,2,31,2,3,2,5,2,37,2,3,2,41,2,43,2,3,2,47,2,7,2,3,2,53,2,5,2,3,2,59,2,61,2,3,2,5,2,67,2,3,2,71,2,73,2,3,2,7,2,79,2,3,2,83,2,5,2,3,2,89,2,7,2,3,2,5,2,97,2,3,2,101 mov $1,1 mov $...
; 硬盘相关常量 DISK_CMD_READ equ 0x20 DISK_LBA_MODE equ 0xe0 DISK_MASTER equ 0x00 PRI_DATA_PORT equ 0x01f0 PRI_SEC_COUNT_PORT equ 0x01f2 PRI_LBA_LOW_PORT equ 0x01f3 PRI_LBA_MID_PORT ...
; ; Sprinter C Library ; ; ANSI Video handling for Sprinter ; ; $Id: f_ansi_char.asm,v 1.3 2016-06-12 16:06:43 dom Exp $ ; SECTION code_clib PUBLIC ansi_CHAR EXTERN __console_y EXTERN __console_x EXTERN __sprinter_attr ; a = character to print - need to handle attributes .ansi_CHAR ex af,af ...
SECTION code_clib SECTION code_fcntl PUBLIC __fcntl_lock_fdtbl EXTERN __fcntl_fdtbl_lock, asm_mtx_lock __fcntl_lock_fdtbl: ; acquire lock on fd table ; ; enter : none ; ; exit : lock acquired ; carry reset ; ; uses : af push bc push de push hl loop: ld hl,__fcntl...
.global s_prepare_buffers s_prepare_buffers: push %r8 push %rcx push %rdi push %rsi lea addresses_WT_ht+0x14670, %rsi lea addresses_WC_ht+0xf480, %rdi nop nop sub $30714, %r8 mov $88, %rcx rep movsb nop nop dec %rsi pop %rsi pop %rdi pop %rcx pop %r8 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 pus...
; ; Rebind shellcode ; Use Stephen Fewer hashing algorithm to dynamically find addresses of API methods ; ; Code uses techniques from ; - https://github.com/BorjaMerino/Windows-One-Way-Stagers/blob/master/Rebind-Socket/migrate_rebind_socket.asm ; - https://raw.githubusercontent.com/rapid7/metasploit-framework/master/e...
; int strnicmp(const char *s1, const char *s2, size_t n) SECTION code_clib SECTION code_string PUBLIC strnicmp_callee EXTERN strncasecmp_callee defc strnicmp_callee = strncasecmp_callee ; SDCC bridge for Classic IF __CLASSIC PUBLIC _strnicmp_callee defc _strnicmp_callee = strnicmp_callee ENDIF
global main global foo extern ulessequal extern ugreaterequal extern uless extern ugreater extern getdouble extern putdouble extern getchar extern putchar extern free extern alloc extern get extern put extern depth extern orsig extern andsig extern drop extern tuck extern nip extern rot extern swap extern over extern d...
// Copyright (c) 2014, Lee // 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 notice, this // list of conditions and the...
/* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with cer...
#include <iostream> #include <algorithm> #include <cstdio> #include <queue> #define REP(i, a, n) for(int i=a;i<=n;++i) using namespace std; typedef long long ll; typedef pair<int, int> pii; const int N = 1e6 + 10, INF = 0x3f3f3f3f; int n, m, a, b, S, T; char s[55][55]; struct edge { int v, next; ...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 004D3E move.l D0, (A4)+ 004D40 dbra D1, $4d38 0356EC move.w ($8,A6), ($ae,A6) 0356F2 or.w D0, D0 [enemy+AE] 0356F6 move.w ($8,A6), ($ae,A6) 0356FC move #$1, CCR [enemy+AE] 035A12 move.w #$...
BITS 32 ; XOR [ESP], ESI and XOR ESI, [ESP] can be encoded in two ways, one of which is ; alphanumeric. NASM chooses the wrong one, which is why we have these: %define xor_esp_esi db 0x31, 0x34, 0x64 %define xor_esi_esp db 0x33, 0x34, 0x64 ; This code assumes ECX contains the baseaddress of the code. This ad...
0200: 20 clrp 0201: c0 di 0202: cd ff mov x,#$ff 0204: bd mov sp,x 0205: e8 00 mov a,#$00 0207: 5d mov x,a 0208: af mov (x)+,a 0209: c8 f0 cmp x,#$f0 020b: d0 fb bne $0208 020d: 1a eb decw $eb 020f: e8 00 mov a,#$00 0211: 8d 0c mov y,#$0c...
Route20_h: db OVERWORLD ; tileset db ROUTE_20_HEIGHT, ROUTE_20_WIDTH ; dimensions (y, x) dw Route20_Blocks ; blocks dw Route20_TextPointers ; texts dw Route20_Script ; scripts db WEST | EAST ; connections WEST_MAP_CONNECTION ROUTE_20, CINNABAR_ISLAND, 0, 0, CinnabarIsland_Blocks EAST_MAP_CONNECTION ROUTE_20, RO...
//---------------------------------------------------------------------------- // ObjectWindows // Copyright (c) 1995, 1996 by Borland International, All Rights Reserved // /// \file /// Implementation of class TModuleVersionInfo, version resource parser & /// accessor class //-----------------------------------...
; A171503: Number of 2 X 2 integer matrices with entries from {0,1,...,n} having determinant 1. ; Submitted by Jon Maiga ; 0,3,7,15,23,39,47,71,87,111,127,167,183,231,255,287,319,383,407,479,511,559,599,687,719,799,847,919,967,1079,1111,1231,1295,1375,1439,1535,1583,1727,1799,1895,1959,2119,2167,2335,2415,2511,2599,278...
// (C) Copyright Gennadiy Rozental 2005-2007. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ // // Version ...
#include <bit/bit.h> #include <lib/msgpuck/msgpuck.h> #include "scramble.h" #include <box/box.h> #include <box/tuple.h> #include <box/lua/index.h> #include <box/lua/tuple.h> #include <box/lua/call.h> #include <box/sophia_engine.h> #include <lua/init.h> #include "main.h" #include "lua/bsdsocket.h" #include "lua/digest....
; A037955: a(n) = binomial(n, floor(n/2)-1). ; 0,0,1,1,4,5,15,21,56,84,210,330,792,1287,3003,5005,11440,19448,43758,75582,167960,293930,646646,1144066,2496144,4457400,9657700,17383860,37442160,67863915,145422675,265182525,565722720,1037158320,2203961430,4059928950,8597496600,15905368710,33578000610,62359143990,13128240...
; A245357: Number of numbers with property that their base 5/4 expansion (see A024634) has n digits. ; 5,5,5,5,5,10,10,15,15,20,25,30,40,50,60,75,95,120,150,185,235,290,365,455,570,710,890,1110,1390,1735,2170,2715,3390,4240,5300,6625,8280,10350,12940,16175,20215,25270,31590,39485,49355,61695,77120,96400,120500 mov $6,...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: nimbusContinuity.asm AUTHOR: Gene Anderson, May 30, 1990 ROUTINES: Name Description ---- ----------- XPixelate Scan vertically at...
#include "N7S1_ShiftedSchwefel_F7.h" namespace OFEC { namespace CEC2013 { N7S1_ShiftedSchwefel_F7::N7S1_ShiftedSchwefel_F7(const ParamMap &v) : N7S1_ShiftedSchwefel_F7((v.at("problem name")), (v.at("number of variables")), 1) \ { } N7S1_ShiftedSchwefel_F7::N7S1_ShiftedSchwefel_F7(const std::string &n...
; A125817: a(n) = ((1 + 3*sqrt(2))^n - (1 - 3*sqrt(2))^n)/(2*sqrt(2)). ; Submitted by Jon Maiga ; 0,3,6,63,228,1527,6930,39819,197448,1071819,5500254,29221431,151947180,800658687,4184419434,21980036547,115095203472,603851028243,3164320515510,16594108511151,86981665785972,456063176261511,2390814670884546,125347033382147...
; PrintDayCareText.TextTable indexes const_def const DAYCARETEXT_MAN_INTRO const DAYCARETEXT_MAN_EGG const DAYCARETEXT_LADY_INTRO const DAYCARETEXT_LADY_EGG const DAYCARETEXT_WHICH_ONE const DAYCARETEXT_DEPOSIT const DAYCARETEXT_CANT_BREED_EGG const DAYCARETEXT_LAST_MON const DAYCARETEXT_LAST_ALIVE_MON const...
/* ID: s0000151 PROG: dualpal LANG: C++ */ #include<stdio.h> #include<string.h> #define DEBUG 0 main(){ if(!DEBUG){freopen("dualpal.in","r",stdin); freopen("dualpal.out","w",stdout);} long n,s,base,i,j,k,m=1; char num1[33],num2[33]; for(scanf("%ld %ld",&n,&s);n--;m=1){ while(s++ && m){ for(m=base=2;base<=10...
#include<iostream> #include "foo.h" void foo(){ std::cout<<"hello World" <<std::endl; }
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_AF ;TEST_FILE_META_END ; OR32rr mov ecx, 0x0 mov edx, 0x1 ;TEST_BEGIN_RECORDING or ecx, edx ;TEST_END_RECORDING
; The MIT License (MIT) ; ; Copyright (c) 2014 Microsoft ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Software without restriction, including without limitation the rights ; to use, copy, modify...