content
stringlengths
23
1.05M
FindPath: di ld iy, PathFindingData ld (iy+PFStartX), 2 ld (iy+PFStartY), 4 ld (iy+PFEndX), 6 ld (iy+PFEndY), 5 ld (iy+PFAmountOfOpenTiles), 1 ld (iy+PFAmountOfClosedTiles), 0 ld hl, PFOpenedList ld (hl), 4 inc hl ld (hl), 2 inc hl ld (hl), 0 inc hl ld (hl), 5-4+6-2 jr FindPath2 TempMapData: .db 0,...
frame 5, 06 frame 0, 06 frame 5, 06 frame 0, 06 frame 5, 06 endanim
global atexit, exit, abort segment text ; int atexit(void(*func)()) ; adds func to the stack of functions to call in exit() before termination. ; the same function can be registered more than once. ; calls to atexit() during exit() will always fail. ; returns zero on success. atexit: cmp byte ptr [exit_flag], 0 ...
; THIS IS A SIMPLE PROGRAM TO CONVERT A LOWERCASE LETTER ; TO AN UPPERCASE LETTER .MODEL SMALL .STACK 100H .DATA CR EQU 0DH LF EQU 0AH LET DB ? MSG DB 'ENTER THE LOWERCASE LETTER: $' MSG1 DB CR, LF, 'IN UPPERCASE: $' .CODE MAIN PROC ; INITIALIZE ...
[BITS 16] global memory_table_size MAGIC_SMAP equ 0x534D4150 ; The magic number "SMAP" check_mem: mov ax, 0x4000 ; The table will be at 0x40008, so the segment will be 0x4000 mov es, ax mov di, 0x0008 ; The table will be at 0x40008 for 8 byte alignment xor ebx, ebx ...
.386P .model FLAT ; ; r_drawa.s ; x86 assembly-language edge clipping and emission code ; include qasm.inc include d_if.inc if id386 ; !!! if these are changed, they must be changed in r_draw.c too !!! FULLY_CLIPPED_CACHED equ 080000000h FRAMECOUNT_MASK equ 07FFFFFFFh _DATA SEGMENT Ld0 dd 0.0 Ld1 dd 0.0 L...
OPTION DOTNAME .text$ SEGMENT ALIGN(256) 'CODE' ALIGN 64 K256:: DD 0428a2f98h,071374491h,0b5c0fbcfh,0e9b5dba5h DD 03956c25bh,059f111f1h,0923f82a4h,0ab1c5ed5h DD 0d807aa98h,012835b01h,0243185beh,0550c7dc3h DD 072be5d74h,080deb1feh,09bdc06a7h,0c19bf174h DD 0e49b69c1h,0efbe4786h,00fc19dc6h,0240ca1cch DD 02de92c6fh...
; Serial boot loader ROM for Z-Fighter ; by Tangent 2021 ; Does not use CRT/startup code. ; Copies boot loader to top of RAM, jumps to it and disables ROM. ; Loads a .BIN serially through SIO Ch.A to 0000h. ; Does not use interrupts, flow control or error checking. ; Initializes stack pointer beneath boot loader. ; P...
TITLE 'bfp-024-h2b.asm: Test Convert HFP to BFP' *********************************************************************** * *Testcase CONVERT HFP TO BFP * Test case capability includes verifying the condition code for * sundry result cases. CONVERT HFP TO BFP does not generate IEEE * execptions or traps, and does ...
; HOTKEY polling routine V2.01  1988 Tony Tebby QJUMP section hotkey xdef hk_poll xref hk_sstbf xref hk_rjob xref hk_fitmk include 'dev8_keys_qu' include 'dev8_keys_sys' include 'dev8_keys_qlv' include 'dev8_ee_hk_data' include 'dev8_mac_assert' ;+++ ; Hotkey polling routine. ; (Transfers old st...
; ; ANSI Video handling for the MC-1000 ; ; Scrollup ; ; $Id: f_ansi_scrollup.asm $ ; SECTION code_driver PUBLIC ansi_del_line PUBLIC ansi_SCROLLUP ;----------- GFX support for ANSI VT emulation ------------- .ansi_SCROLLUP ld a,$9e out ($80),a ld de,$8000 ld hl,$8000+256 ld bc,6144-256 ldir ld a,...
; ; Startup for m100 ; Stefano, February 2020 ; ; "appmake +trs80 --co" will prepare a valid binary file, to be invoked from within BASIC: ; CLEAR 0,49999: RUNM "A.CO" ; module m100_crt0 ;-------- ; Include zcc_opt.def to find out some info ;-------- defc crt0 = 1 INCLUDE "zcc_opt.def" ;-----...
; ; SN76489 (a.k.a. SN76494,SN76496,TMS9919,SN94624) sound routines ; by Stefano Bodrato, 2018 ; ; int psg_init(); ; ; Play a sound by PSG ; ; ; $Id: psg_init.asm $ ; SECTION code_clib PUBLIC psg_init PUBLIC _psg_init INCLUDE "psg/sn76489.inc" psg_init: _psg_init: LD BC,psgport LD A,$9F OUT (C),A L...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Video Drivers FILE: vga8Chars.asm AUTHOR: Jim DeFrisco, Oct 8, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: N...
; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.40629.0 TITLE C:\Users\cex123\Desktop\FYP\develop\spartan\Source\Kernel\Memory\Heap\Pool.c .686P .XMM include listing.inc .model flat INCLUDELIB OLDNAMES PUBLIC _Pool PUBLIC ??_C@_0BC@DJNCIINJ@pool?5?5?5?5?5?5?5?5?$DN?5?$CFX?6?$A...
user/_testsh: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <rand>: // return a random integer. // from Wikipedia, linear congruential generator, glibc's constants. unsigned int rand() { 0: 1141 addi sp,sp,-16 2: e422 sd s0,8(sp) ...
; ; Copyright (c) 2010 The VP8 project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing projec...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: color Print Drivers FILE: colorGetFormat.asm AUTHOR: Dave Durran ROUTINES: Name Description ---- ----------- REVISION HIS...
; ; OZ-7xx DK emulation layer for Z88DK ; by Stefano Bodrato - Oct. 2003 ; ; void ozfilledbox(int x, int y, int width, int height); ; ; ------ ; $Id: ozfilledbox.asm,v 1.3 2016/06/28 14:48:17 dom Exp $ ; SECTION code_clib PUBLIC ozfilledbox PUBLIC _ozfilledbox EXTERN swapgfxbk EXTERN __oz_g...
ORG 00H MOV 22H,#0FFH MOV 15H,#0DEH MOV A,#0H MOV R1,#0H MOV R0,22H AGAIN: ADD A,15H JNC SKIP INC R1 SKIP: DJNZ R0,AGAIN MOV 19H,A MOV 1AH,R1 LOOP: MOV P0,A ACALL DELAY MOV P0,R1 ACALL DELAY AJMP LOOP DELAY: MOV R4,#7 HERE1: MOV R5,#255 HERE2: MOV R7,#255 HERE3: DJNZ R7,HERE3...
; sets up projectile slots init_projectile_slots: ldy #PROJECTILES-1 ldx #PROJECTILES+PROJECTILES_START-1 @loop: txa sta projectile_obj, y lda #$00 sta projectile_flags, y sta projectile_x, y sta projectile_y, y sta projectile_data, y dex dey cpy #$FF bne @loop r...
; uchar __FASTCALL__ bpeek(void *addr) ; 11.2006 aralbrec XLIB bpeek .bpeek ld l,(hl) ld h,0 ret
//Documentation: //GTA V Legacy menu code //Author: Daniel Santos //>Memory address //0******* - Data Type - 1 byte //1******* - Data Type - 2 bytes //2******* - Data Type - 4 bytes //>Instruction //**000000 - First Byte - Opcode //00**0000 - Seconde Byte - Recorder //0000**** - Last 2 Bytes - Value/Adress Jump/Mult...
; ; jcsample.asm - downsampling (64-bit SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright 2009 D. R. Commander ; ; Based on ; x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsimdext.i...
.ifndef MCU_CLOCK_DEFAULT .equ MCU_CLOCK_DEFAULT = 1000000 .endif #define CALCULATE_TICKS_BY_TIME(C) (C * MCU_CLOCK_DEFAULT)
Music_PokemonChannel: channel_count 4 channel 1, Music_PokemonChannel_Ch1 channel 2, Music_PokemonChannel_Ch2 channel 3, Music_PokemonChannel_Ch3 channel 4, Music_PokemonChannel_Ch4 Music_PokemonChannel_Ch1:: tempo 155 volume 7, 7 stereo_panning TRUE, FALSE duty_cycle 1 note_type 12, 5, 6 .loop octave 4 ...
Name: ys_mapdt.asm Type: file Size: 76124 Last-Modified: '2016-05-13T04:51:45Z' SHA-1: 269EB28C7D86438C24D5CB8A0D52CF004469401C Description: null
; =============================================================== ; May 2017 ; =============================================================== ; ; uchar *tshc_aaddr2saddr(void *aaddr) ; ; Attribute address to screen address. ; ; =============================================================== SECTION code_clib SECTION ...
.include "defaults_item.asm" table_file_jp equ "exe6-utf8.tbl" table_file_en equ "bn6-utf8.tbl" game_code_len equ 3 game_code equ 0x4252354A // BR5J game_code_2 equ 0x42523545 // BR5E game_code_3 equ 0x42523550 // BR5P card_type equ 0 card_id equ 9 card_no equ "009" card_sub equ "Item Card 009" card_sub_x...
include w2.inc include noxport.inc include consts.inc include structs.inc createSeg rtfin_PCODE,rtfinn,byte,public,CODE ; DEBUGGING DECLARATIONS ifdef DEBUG midRtfinn equ 28 ; module ID, for native asserts endif ; EXTERNAL FUNCTIONS externFP <FStackRtfState> extern...
;************************************************************************* ;** INTEL Corporation Proprietary Information ;** ;** This listing is supplied under the terms of a license ;** agreement with INTEL Corporation and may not be copied ;** nor disclosed except in accordance with the terms of ;**...
global enter_usermode enter_usermode: cli mov ax, 0x23 ; user mode data selector is 0x20 (GDT entry 3). Also sets RPL to 3 mov ds, ax mov es, ax mov fs, ax mov gs, ax push 0x23 ; SS, notice it uses same selector as above push esp ; ESP pushfd ; EFLAGS pop eax or eax, 0x200 ; enable IF in EFLAGS push ...
comment # Name : I-Worm.Rush Author : PetiK Date : August 27th - September 2nd Size : 5632 byte (compiled with UPX tool) Action : Copy itself to * WINDOWS\SYSTEM\Mail32.exe Add in the key HKLM\Software\Microsoft\Windows\CurrentVersion\Run the value * Mail Outlook = WINDOWS\SYSTEM\Mail32.exe * On We...
;; Clears MODE 7 screen ;; VDU_INIT is an array of VDU_INIT_LEN bytes to be written to each line lda #12 ldx #24 ROW_VDU_START: jsr $ffe3 ldy #-VDU_INIT_LEN ROW_VDU: lda VDU_INIT-256+VDU_INIT_LEN,y jsr $ffe3 iny bne ROW_VDU lda #13 dex bne ROW_VDU_START
Name: game_over_usa.asm Type: file Size: 75996 Last-Modified: '2000-11-08T02:03:12Z' SHA-1: 488D330AFC2CFF9D0DD6B0C952301E881FAC32E3 Description: null
;Binary to decimal extern printf extern scanf extern gets SECTION .data int_in_fmt: db "%ld",0 int_out_fmt: db "%ld",10,0 int: dq 0 char: db 0 out_str_fmt: db "%s",10,0 in_str_fmt: db "%s",0 out_char_fmt: db "%c",10,0 in_char_fmt: db "%c",0 str: resb 100 arr: resq 100 SECTION .text global main main: ...
; ; Copyright (c) 2020 Phillip Stevens ; ; This Source Code Form is subject to the terms of the Mozilla Public ; License, v. 2.0. If a copy of the MPL was not distributed with this ; file, You can obtain one at http://mozilla.org/MPL/2.0/. ; ; feilipu, 2020 May ; ;--------------------------------------------------...
; Jacob Laney ; January 2016 ; ; NASM x86 for Mac OSX ; build: nasm -f macho64 writer.asm && ld writer.o -o writer ; run: ./writer ; ; Obective is to produce an assortment of procedures for printing data ; to stdout global start section .data ; SYSTEM CALL CODES %define exit 0x2000001 %define r...
(Sys.init) @4000 D=A @0 A=M M=D @0 M=M+1 @0 M=M-1 @3 D=A @0 D=D+A @13 M=D @0 A=M D=M @13 A=M M=D @5000 D=A @0 A=M M=D @0 M=M+1 @0 M=M-1 @3 D=A @1 D=D+A @13 M=D @0 A=M D=M @13 A=M M=D @112 D=A @SP A=M M=D @SP M=M+1 @LCL D=M @SP A=M M=D @SP M=M+1 @ARG D=M @SP A=M M=D @SP M=M+1 @THIS D=M @SP A=M M=D @SP M=M+1 @THAT D=M @S...
SECTION code_clib SECTION code_fp_math32 PUBLIC cm32_sdcc_fsreadr_callee PUBLIC cm32_sdcc_fsread1_callee .cm32_sdcc_fsreadr_callee ; sdcc float primitive ; Read right sdcc float from the stack ; ; enter : stack = sdcc_float right, sdcc_float left, ret1, ret0 ; ; exit : sdcc_float left, ret1...
; void z180_set_int_state(uint state) SECTION code_clib SECTION code_z180 PUBLIC z180_set_int_state EXTERN asm_z180_set_int_state defc z180_set_int_state = asm_z180_set_int_state
SECTION code_clib SECTION code_l PUBLIC l_call_hl EXTERN l_jphl defc l_call_hl = l_jphl ; use for compile time user code
SECTION code_fp_math16 PUBLIC _mul10f16_fastcall EXTERN asm_f16_mul10 defc _mul10f16_fastcall = asm_f16_mul10
CGAHeartT label byte word C_BLACK Bitmap <67,41,BMC_PACKBITS,BMF_MONO> db 0xf8, 0x00 db 0xf8, 0x00 db 0x00, 0x19, 0xfe, 0xf8, 0x04, 0x03, 0xe3, 0xe0, 0xee, 0x00 db 0x08, 0x1b, 0x0d, 0x55, 0x54, 0x05, 0x55, 0x51, 0x55, 0x00 db 0x08, 0x1b, 0x0d, 0xaa, 0xac, 0x06, 0xaa, 0xb1, 0xab, 0x00 db 0x08...
; Original address was $AA2A ; World 1 Fortress spike room / Warp Whistle location .word W10FL ; Alternate level layout .word W10FO ; Alternate object layout .byte LEVEL1_SIZE_06 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_02 | LEVEL3_VSCROLL_LOCKLOW | LEVEL...
; Test res* family errors a: resb -5 resw 1.2 resd -1.2 resq 0xffffffff rest a [section .bss] resb -5 resw 1.2 resd -1.2 resq 0xffffffff rest a
; ; SORD M5 Stdio ; ; getk() Read key status ; ; Stefano Bodrato - 18/5/2001 ; ; ; $Id: getk.asm,v 1.8 2016/06/12 17:07:44 dom Exp $ ; SECTION code_clib PUBLIC getk PUBLIC _getk EXTERN msxbios INCLUDE "m5bios.def" .getk ._getk ld ix,0ACECH call msxbios ld h,0 ld l,a ret
lbi r21 50 lbi r22 1 slbi r22 0x400 st r22 r21 0 ld r30 r22 0 addi r30 r0 1 st r22 r30 1 ld r31 r22 1 addi r31 r0 1 kill r1
INCLUDE "config_private.inc" SECTION code_clib SECTION code_math PUBLIC l_mulu_24_16x8 ; compute: ahl = hl * e ; alters : af, bc, de, hl IF __CLIB_OPT_IMATH <= 50 EXTERN l0_small_mul_32_32x32 l_mulu_24_16x8: ld c,e ex de,hl xor a ld l,a ld h,a ld b,a exx push bc...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1993 -- All Rights Reserved PROJECT: PC GEOS MODULE: IBM Proprinter X24 24-pin printer driver for Zoomer FILE: propx24zDriverInfo.asm AUTHOR: Dave Durran, 26 Mar 1990 REVISION HISTORY: ...
user/_mounttest: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <test0>: test4(); exit(); } void test0() { 0: 7139 addi sp,sp,-64 2: fc06 sd ra,56(sp) 4: f822 sd s0,48(sp) 6: f426 sd s1...
.data a: .space 40 sum: .space 40 i: .word 0 v: .word 0 v1: .word 0 v2: .word 0 maxsum: .word 0 .text runtime: addi $sp, $sp, -4 sw $ra, 0($sp) lw $ra, 0($sp) addi $sp, $sp, 4 jr $ra .end runtime .globl main .ent main main: li $3, 0 # i -> $3 # Store dirty variables back into memory sw $3, i l...
// converted from BASIC from the Commodore 64 Programmer's reference guide page 167 .pc = $0801 "Basic Upstart Program" :BasicUpstart($0810) .pc = $0810 "Main Program" // animating dancing mouse // it is a bit buggy in the sid kernel routine .const delay = $60 .macro small_delay() { ldx #0 !t: inx cpx #delay bne...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: video driver FILE: vidcomFont.asm AUTHOR: Gene Anderson, June 6th, 1989 ROUTINES: Name Description ---- ----------- VidBuildChar exit th...
EMZ_Header: sHeaderInit ; Z80 offset is $A24B sHeaderPatch EMZ_Patches sHeaderCh $06, $03 sHeaderTempo $01, $1C sHeaderDAC EMZ_DAC sHeaderFM EMZ_FM1, $00, $10 sHeaderFM EMZ_FM2, $00, $0F sHeaderFM EMZ_FM3, $00, $0E sHeaderFM EMZ_FM4, $00, $0E sHeaderFM EMZ_FM5, $00, $1D sHeaderPSG EMZ_PSG1, $E8, $05, $0...
READ X PUSH LOAD X STACKW 0 READ X PUSH LOAD X STACKW 0 READ X STACKR 1 ADD X STORE X STACKR 0 ADD X STORE X WRITE X POP POP STOP X 0
copyright zengfr site:http://github.com/zengfr/romhack 001590 lea ($20,A0), A0 003D2C move.b (A1)+, ($92,A0) [enemy+91] 003D30 move.b (A1)+, ($3c,A0) [enemy+92] 003D8E move.b (A1)+, ($92,A0) [enemy+91] 003D92 move.b (A1)+, ($3c,A0) [enemy+92] 00829C move.b ($92,A0), D0 [enemy+84] 0082A0 ext.w D0 [en...
.text li $a1,100 li $v0,42 syscall add $a0 $a0,1 li $v0 ,1 syscall
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ; ; maximum and minimum routines. ; .xlist include version.inc include cmacros.inc .list sBegin code assumes cs,code cProc max,<PUBLIC> parmW a parm...
; Procedure to execute programs V2.01  1990 Tony Tebby QJUMP ; ; 2006-03-27 2.01 Use system specific delay (MK) section hotkey xdef hxt_thing xdef hxt_doex xref hxt_go xref hxt_mkxt xref hk_do xref hxt_prmx xref gu_hkuse xref gu_hkfre xref gu_rchp xref gu_exdelay xref gu_pause include 'dev8_...
# $r2 = i # registers have default values main: lw $r2 0($r31) # i=0 loop: add $r2 $r2 $r1 # r2 = r2 + 1 bne $r2 $r10, loop # exit if r2 == r10 (if i == 10) exit: sw $r2 100($r0) # store x to 0x190
; attribute line offsets in the VRAM to control-key position KEY_ATTR_OFS_HELP equ 0 KEY_ATTR_OFS_TURBO equ 5 KEY_ATTR_OFS_FULL equ 10 KEY_ATTR_OFS_RUN equ 15 KEY_ATTR_OFS_CORE equ 22 KEY_ATTR_OFS_INSTR equ 27 CHARPOS_INS_END equ 13 CHARPOS_ENCODING equ 15 CHARPOS_INS_...
; unsigned int SMS_getKeysStatus(void) SECTION code_clib SECTION code_SMSlib PUBLIC SMS_getKeysStatus EXTERN asm_SMSlib_getKeysStatus defc SMS_getKeysStatus = asm_SMSlib_getKeysStatus
.MODEL SMALL .STACK 100 .DATA INPROMPT DB "Please enter 5 decimal digits >> $" OUTPROMPT DB "The largest value in the list is >> $" NL DB 13,10,'$' DIGITS LABEL BYTE MAXN DB 6 ACTN DB ? ACTSTR DB 20 DUP('$') LARGEST DB ? .CODE MAIN PROC ...
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : dim.asm ; Purpose : DIM Command ; Date : 27th August 2019 ; Author : Paul Robson (paul@robsons.org.uk) ; ; ******...
ldy #0 beq in loop: jsr $ffd2 iny in: lda hello,y bne loop rts hello: .tx "Fuck You Github!" .by 13,10,0
#import "64spec/lib/64spec.asm" #import "../lib/tiles-color-ram-shift.asm" #import "common/lib/invoke-global.asm" sfspec: init_spec() describe("_shiftInterleavedLeft even") it("shifts mem left by 1 from [0,0]"); { c64lib_pushParamW(initialScreenData0) c64lib_pushParamW(testScreenD...
_DepositPKMN: ld hl, wOptions ld a, [hl] push af set NO_TEXT_SCROLL, [hl] ld a, [wVramState] push af xor a ld [wVramState], a ldh a, [hInMenu] push af ld a, $1 ldh [hInMenu], a xor a ldh [hMapAnims], a call BillsPC_InitRAM xor a ld [wBillsPC_LoadedBox], a call DelayFrame .loop call JoyTextDelay ld a...
; ; Grundy NewBrain startup code ; ; ; $Id: newbrain_crt0.asm,v 1.7 2009/06/22 21:20:05 dom Exp $ ; MODULE newbrain_crt0 ;-------- ; Include zcc_opt.def to find out some info ;-------- INCLUDE "zcc_opt.def" ;-------- ; Some scope definitions ;-------- XREF _main ...
.data vetor: .word 0:20000 .text la $s6,vetor li $t5,-5 sw $t5,8($s6) sw $t5,12($s6) sw $t5,20($s6) sw $t5,24($s6) sw $t5,32($s6) loop: slti $t1,$t2,20000 beq $t1,$zero,end lw $t0,($s6) slti $t1,$t0,0 beq $t1,$zero,next addi $s0,$s0,1 next: addi $s6,$s6,4 addi $t2,$t2,1 j loop end:
; A010238: Maximal size of binary code of length n and asymmetric distance 3. ; Submitted by Christian Krause ; 1,1,2,2,2,4,4,7,12,18 mov $4,$0 add $4,1 mov $6,$0 lpb $4 mov $0,$6 mov $1,0 sub $4,1 sub $0,$4 mov $2,$0 sub $2,2 mov $8,0 lpb $0 add $8,$0 add $0,$2 pow $0,2 lpb $0 su...
copyright zengfr site:http://github.com/zengfr/romhack 01A610 dbra D1, $1a60e 053526 move.w #$200, ($28,A0) [base+19E] copyright zengfr site:http://github.com/zengfr/romhack
%include 'src/include/functions.asm' SECTION .text global _start _start: mov eax, 2 mov ebx, 18 add eax, ebx call iprintLF call quit
; unsigned char esx_m_getdate(struct dos_tm *) SECTION code_esxdos PUBLIC esx_m_getdate EXTERN asm_esx_m_getdate defc esx_m_getdate = asm_esx_m_getdate ; SDCC bridge for Classic IF __CLASSIC PUBLIC _esx_m_getdate defc _esx_m_getdate = esx_m_getdate ENDIF
section .text global _start _start: mov edx,len mov ecx,msg mov ebx,1 mov eax,4 int 0x80 mov eax,1 int 0x80 section .data msg db 'Hello, World!', 0xa len equ $ - msg
; SNROM: (128,256KB)PRG-ROM + 8KB PRG-RAM + 8KB CHR-RAM/ROM ; http://bootgod.dyndns.org:7777/search.php?keywords=SNROM&kwtype=pcb ;------------------------------------------------------------------------------; ; number of 16K PRG banks ; Valid configurations: $08 (128K), $10 (256K) PRG_BANKS = $08 ; CHR RAM/ROM toggl...
%ifdef CONFIG { "RegData": { "RBX": "0x60", "RCX": "0x00", "RDX": "0x00", "RBP": "0x20", "RDI": "0x00", "RSP": "0x00", "R8": "0x00", "R9": "0x01", "R10": "0x0000004000404740", "R11": "0x50", "R12": "0x6162636465666768" }, "MemoryRegions": { "0x100000000": "4096" ...
; SLAE - Assignment #1: Shell Bind TCP Shellcode (Linux/x86) ; Author: Julien Ahrens (@MrTuxracer) ; Website: http://www.rcesecurity.com global _start section .text _start: ; ; int socketcall(int call, unsigned long *args); ; sockfd = socket(int socket_family, int socket_type, int protocol); ; push 0x66 p...
//======================================== // NES Registers //---------------------------------------- .def sq4000 0x40 // 0x4000 .def sq4001 0x41 // 0x4001 .def sq4002 0x42 // 0x4002 .def sq4003 0x43 // 0x4003 .def sq4004 0x44 // 0x4004 .def sq4005 ...
dnl AMD K7 mpn_mul_basecase -- multiply two mpn numbers. dnl Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or dnl modify it under the terms of the GNU Lesser General Public L...
.MODEL SMALL .STACK 64 .DATA STRING DB ? SYM DB '$' INPUT_M DB 'Input:$' OUTPUT_M DB 'Output:$' .CODE MOV AX,@DATA MOV DS,AX MOV DX,OFFSET INPUT_M MOV AH,09 INT 21H MOV SI, OFFSET STRING INPUT: MOV AH,01 INT 21H MOV [SI],AL INC SI ...
section .text global stack stack: mov rax, 17 push rax call stack2 pop rax ret stack2: mov rax, 18 ret
; Jonathan Frech, August 2020 ; Joy Assembly code to multiply two integers jmp @main ; memory layout global-x: data[1] 0 global-y: data[1] 0 global-z: data[1] 0 ; input values to be multiplied x := 342 y := 83 ; multiply the value at address global-x with those at ; address global-y and store the result...
; int puts_unlocked_fastcall(const char *s) SECTION code_clib SECTION code_stdio PUBLIC _puts_unlocked_fastcall EXTERN asm_puts_unlocked _puts_unlocked_fastcall: push ix call asm_puts_unlocked pop ix ret
#include "../../flame32.asm" ; Tests CMP lod 1 ldl B, 2 cmp A, B ; O = NE | LT
; ; MMC/SD Drive SN76489 DCSG driver (primary) ; MMCSDP_SN76489: equ 49H MMCSDpDCSG: MACRO super: DCSG MMCSDP_SN76489, MMCSDpDCSG_name slot: db 0 ENDM ; ix = this ; iy = drivers MMCSDpDCSG_Construct: call DCSG_Construct call MMCSDp_Detect jp nc,Driver_NotFound ld (ix + MMCSDpDCSG.slot),a call MMCSDv4_Enable...
; Password list used in windows user logon bruteforcer .data CWordList db "r`l`oui`",0 db "lhbidmmd",0 db "e`whe",0 db "dlhodl",0 db "rbnnuds",0 db "`reg`reg",0 db "r`llx",0 db "c`cx",0 db "eh`lnoe",0 db "l`yvdmm",0 db "44444",0 db "ktruho",0 db "k`ldr",0 db "bihbjdo",0 db "e`ohdmmd",0 ...
sll $1,$6,0 sra $1,$1,12 slti $3,$3,-25939 nor $5,$3,$3 addiu $4,$4,15870 sll $4,$3,12 srav $0,$5,$3 nor $3,$4,$3 sltiu $5,$3,-23441 sllv $1,$1,$3 subu $4,$4,$3 sra $3,$3,11 addiu $0,$1,-3621 slt $4,$1,$3 lh $0,16($0) sh $3,2($0) slti $1,$6,-30893 sra $3,$6,5 srav $3,$3,$3 sw $3,16($0) andi $3,$5,21800 srav $5,$3,$3 lb...
;KBHandleCharacter ;KBHandleArrowKey ;KBHandleTab ;KBHandleEnter ;KBHandleBackspace ;KBHandleDelete ;KBHandleFunctionKey ;KBHandleEscape ;simulates on screen keyboard actions ;_c = caps, _x,_y = char pos UILowerCase: DB "abcdefghijklmnopqrstuvwxyz *():;[]#%-?!*+/.," UIUpperCase: DB "ABCDEFGHIJKLMNOPQRSTUVWXYZ" KBHandl...
************************** * * * APPLE-II HI-RESOLUTION * * GRAPHICS SUBROUTINES * * * * BY WOZ 9/13/77 * * * * ALL RIGHTS RESERVED * * * ************************** * HI-RES EQUATES SHAPEL EQU $1A POINTER TO SHA...
//init SP @256 D = A @SP M = D //init LCL @256 D = A @LCL M = D //init ARG @256 D = A @ARG M = D // call Sys.init 0 // get ip @RET_ADDR0 D = A // push data in this order: RET LCL ARG THIS THAT @SP M = M + 1 A = M - 1 M = D @LCL D = M @SP M = M + 1 A = M - 1 M = D @ARG D = M @SP M = M + 1 A = M - 1 M = D @THIS D = M @SP...
; Z88 Small C+ Run time Library ; Moved functions over to proper libdefs ; To make startup code smaller and neater! ; ; 6/9/98 djm XLIB l_com ; HL = ~HL .l_com ld a,h cpl ld h,a ld a,l cpl ld l,a ret
.model small .stack 16 .data a db 7 b db 9 c dw ? .code start: mov AX, @data mov DS, AX xor AX, AX mov AL,a add AL,b mov c,AX mov AX, 4C00h int 21h end start
CorrectNickErrors:: ; error-check monster nick before use ; must be a peace offering to gamesharkers ; input: de = nick location push bc push de ld b, MON_NAME_LENGTH .checkchar ; end of nick? ld a, [de] cp "@" ; terminator jr z, .end ; check if this char is a text command ld hl, .textcommands dec hl .loop ...
; stdio_error_enfile_zc ; 06.2008 aralbrec PUBLIC stdio_error_enfile_zc EXTERN stdio_errno_zc INCLUDE "../stdio.def" pop hl .stdio_error_enfile_zc ld hl,ENFILE jp stdio_errno_zc
; Listing generated by Microsoft (R) Optimizing Compiler Version 17.00.50727.1 include listing.inc INCLUDELIB LIBCMT INCLUDELIB OLDNAMES CONST SEGMENT $SG3516 DB 'dev', 00H CONST ENDS PUBLIC ?sys_open_file@@YAHPEADPEAU_file_@@@Z ; sys_open_file PUBLIC ?sys_read_file@@YAXHPEAEPEAU_file_@@@Z ; sys_read_file PUBLIC ...
; ; ltell a file on the Amstrad NC100 (max 64k files so can dump high ; bits) ; ; Supporting helpers ; SECTION code_clib PUBLIC nc_ltell PUBLIC _nc_ltell ._nc_ltell .nc_ltell ex de, hl jp 0xB8BD
SSAnneBow_Object: db $23 ; border block db 2 ; warps warp 13, 6, 0, SS_ANNE_3F warp 13, 7, 0, SS_ANNE_3F db 0 ; signs db 5 ; objects object SPRITE_BLACK_HAIR_BOY_2, 5, 2, STAY, UP, 1 ; person object SPRITE_SAILOR, 4, 9, STAY, NONE, 2 ; person object SPRITE_BLACK_HAIR_BOY_1, 7, 11, STAY, NONE, 3 ; person ob...
TITLE MCLPRC - MACRO LANGUAGE DRIVER ;*** ; MCLPRC - MACRO LANGUAGE DRIVER ; ; Copyright <C> 1986, Microsoft Corporation ; ;Purpose: ; ;****************************************************************************** INCLUDE switch.inc INCLUDE rmacros.inc ; Runtime Macro Definitions useSeg _DATA useSeg _BSS ...
;------------------------------- ; test for and/andi/or/ori/eor ;------------------------------- ldi r16,0x33 ldi r24,0x66 mov r7 ,r16 mov r8 ,r24 ldi r16,0x99 ldi r24,0xcc ldi r17,0x55 ldi r25,0x5a mov r6 ,r17 mov r9 ,r25 ldi r17,0xa5 ldi r25,0xaa ;---------...