content
stringlengths
23
1.05M
ret .BYT 10 str .BYT '*' rep TRP 4 TRP 3 LDB R0 ret CMP R0 R3 BRZ R0 end LDB R3 str TRP 3 JMP rep end TRP 0
; sources: slae, ia32 manual, nasm manual global _start section .text _start: mov eax, var1 mov ebx, var2 mov ecx, var3 section .data ; for ia32, we have the following datatypes: ; byte: 8 bits ; word: 16 bits ; double word: 32 bits ; quad word: 64 bits ; double quad word: 128 bits ; both signed and un...
copyright zengfr site:http://github.com/zengfr/romhack 0032F6 tst.b ($2e,A6) [1p+7E, boss+7E, container+7E, enemy+7E, weapon+7E] copyright zengfr site:http://github.com/zengfr/romhack
-- 7 Billion Humans (2056) -- -- 24: Budget Brigade 1 -- -- Author: ansvonwa -- Size: 6 -- Speed: 106 a: if s == printer: takefrom s endif if s == shredder and myitem == datacube: giveto s endif takefrom w jump a
CheckBreedmonCompatibility: call .CheckBreedingGroupCompatibility ld c, $0 jp nc, .done ld a, [wBreedMon1Species] ld [wCurPartySpecies], a ld a, [wBreedMon1DVs] ld [wTempMonDVs], a ld a, [wBreedMon1DVs + 1] ld [wTempMonDVs + 1], a ld a, TEMPMON ld [wMonType], a predef GetGender jr c, .genderless ld b, $1 ...
;/* ; * cos.asm ; * ; * Created on: Feb 16, 2013 ; * Author: BLEE ; * ; * Description: cos(x) approximation function ; * using function: cos(x)=1-(1/2!)x^2+(1/4!)x^4-(1/6!)x^6 ; * ; * For the book "Real Time Digital Signal Processing: ; * Fundamentals, Implementation and Application,...
@256 D=A @SP M=D @.call0 D=A @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 M=M+1 A=M-1 M=D @THAT D=M @SP M=M+1 A=M-1 M=D @0 D=A @5 D=D+A @SP A=M D=A-D @ARG M=D @SP D=M @LCL M=D @Sys.init 0;JMP (.call0) (Main.fibonacci) @SP A=M D=A @SP M=D @0 D=A @ARG A=M+D D=M @SP A=M M=D @...
Name: sound.asm Type: file Size: 506 Last-Modified: '1991-12-16T11:05:59Z' SHA-1: D34ABADC511C2153FBD2F27268CE5D063008E9BA Description: null
;this file is unused currently. _MasterBallDescription:: text "The best BALL." line "It never misses." prompt _UltraBallDescription:: text "A BALL with a" line "high rate of" cont "success." prompt _GreatBallDescription:: text "A BALL with a" line "decent success" cont "rate." prompt _PokeBallDescription:...
section .data str: db "Hello, world!", 0x0A, 0 str_length equ $-str STDIN equ 0 STDOUT equ 1 STDERR equ 2 SYS_read equ 0 SYS_write equ 1 SYS_exit equ 60 EXIT_OK equ 0 section .bss section .text global _start _start: mov rax, SYS_write mov rdi, ST...
; ; 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, August 2020 ; ;-----------------------------------------------...
// Original test: ./tschaefe/hw4/problem6/jalr_2.asm // Author: tschaefe // Test source code follows // jalr test 2 // This test has jalr jumping to an ealier part of the program and sets r7 to 0xa lbi r0, 0x0 // r0 used for jump address calculation lbi r1, 0xfd // r1 acts as a loop counter addi r1, r1, 0x01 bgez ...
.mx 0x00 .func Sound__Init Sound__Init: // Disable audio stz $_Sound_Active // Change mode and lock thread php sep #0x24 .mx 0x20 // Are we on EmulSNES? If so, leave lda $0x4210 eor $0x4210 and #0x0f beq $+Sound__Init_In plp return Sound__Init_In: // Local variables //.local .index // Wait for ...
* Error processing extras V0.1  1985 Tony Tebby QJUMP * section exten * * REPORT [#channel,][ernum] report an error * xdef report * xref ut_chan0 get channel default d0 xref ut_gtlin get long integer xref ut_errms ...
; ; lab03C.asm ; ; Created: 2017/9/13 1:58:39 ; Author : LI JINGCHENG ; .include "m2560def.inc" .def time = r16 .def i = r17 .def j = r18 .def k = r19 .def n = r20 .def second = r21 .def minute = r22 .cseg clr time; out PORTC, time ; Write zeros to all the LEDs out DDRC, time ; PO...
Name: ys_w28.asm Type: file Size: 22387 Last-Modified: '2016-05-13T04:51:15Z' SHA-1: 3BD7EAA78A150060440791826313F6333462AB4F Description: null
%ifdef CONFIG { "RegData": { "RAX": "0xF800000000000000", "RBX": "4", "RCX": "0xFFFFFFFFFFFFFFFF", "RDX": "127", "RSI": "63", "RDI": "0x00000000FFFFFFFF" } } %endif ; Trivial right shift mov rax, 0x8000000000000000 mov rbx, 4 sarx rax, rax, rbx ; This is really a shift by 63. T...
; Original address was $AB97 ; 7-1 .word W701L ; Alternate level layout .word W701O ; Alternate object layout .byte LEVEL1_SIZE_08 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG .byte LEVEL3_TILESET_01 | LEVEL3_VERTICAL | LEVEL3_VSCROLL_FREE | LEVEL3_PIPENOTEXIT...
.data array: .word 10,8,6,7,9,4,5,2,1,3 n: .word 10 .text la $a0 array #pasar argumentos lw $a1 n #pasar argumentos jal sort #llamada a la subrutina move $t0 $v0 li $v0 10 #codigo para terminar ejecucion syscall sort: subi $sp $sp 32 #reservamos espacio en la pila push sw $ra 16($sp) #respaldamos la direccio...
; ; char *asm_strncpy(char *dest, char *src, size_t num); ; BITS 64 SECTION .text GLOBAL asm_strncpy asm_strncpy: PUSH RCX MOV RCX, -1 _loop: INC RCX CMP RCX, RDX JGE _end MOV AL, BYTE [RSI + RCX] MOV BYTE [RDI + RCX], AL CMP BYTE [RSI + RCX], 0 JNE _loop _end: M...
#define TI82 ; select target platform here ;#define TI83 #ifdef TI82 #include CRASH82.INC #else #nolist #include ion.inc #list .ORG progstart xor a jr nc,begin ret #endif .DB "ZX10 TI 0.1", 0 #define db .byte #define dw .word ;4-channel music generator ZX-10 ;Original code JDeak (c)1989 ...
;subroutine global _start section .bss section .data name db "Abdellah",0x0a,0x00 len equ $-name surname db "Oulahyane",0x0a,0x00 surlen equ $-surname section .text _start: mov rax,0x01 mov rdi,0x01 mov rsi,name mov rdx,len syscall jmp lab_surname exit: mov rax,0x03c mo...
;Parameshor Bhandari ;Program: 1 ;Title: Display the name ; org 100h section .data msg1 DB 'Parameshor Bhandari $' exCode DB 0 section .text start: mov dx, msg1 ;get message1 mov ah,09h ;display string function int 21h ;Display message1 exit: mov ah,4Ch ;DOS function: exit program mov al,[e...
mov ax, 0x07c0 mov ds, ax mov si, msg loop: lodsb or al, al ; end of string if 0 jz hang ; go to hang mov ah, 0x0E int 0x10 jmp loop hang: jmp hang times 510-($-$$) db 0 db 0x55 db 0xAA msg db 'SOME LONG MESSAGE ', 13, 10, 0
;================================================================================================== ; Fixes songs in certain scenes to allow for various song learning function to properly play ; through their scripts. ;================================================================================================== su...
; ; Enterprise 64/128 specific routines ; by Stefano Bodrato, 2011 ; ; exos_open_channel(unsigned char ch_number, char *device); ; ; ; $Id: exos_open_channel.asm,v 1.2 2011/03/15 14:34:08 stefano Exp $ ; XLIB exos_open_channel LIB exos_open_channel_callee XREF ASMDISP_EXOS_OPEN_CHANNEL_CALLEE exos_open_cha...
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : string.asm ; Purpose : String split routines ; Date : 15th July 2019 ; Author : paul@robsons.org.uk ; ; ********...
; ; clock() ; Goodness knows it this is right..ages since ; I used a spectrum... ; ; djm 12/1/2000 ; ; ------ ; $Id: clock.asm,v 1.5 2016-06-10 21:14:50 dom Exp $ ; SECTION code_clib PUBLIC clock PUBLIC _clock .clock ._clock ld hl,(23672) ld a,(23674) ld e,a ld d,0 ret
; WARNING: Autogenerated file! Do not put extra data here; editor will not preserve it! .word W403L ; Alternate level layout .word W403O ; Alternate object layout .byte LEVEL1_SIZE_09 | LEVEL1_YSTART_0F0 .byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_09 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_11 | LEVEL3_VSCROLL_FREE | LE...
; Listing generated by Microsoft (R) Optimizing Compiler Version 17.00.50727.1 include listing.inc INCLUDELIB LIBCMT INCLUDELIB OLDNAMES PUBLIC ?century@@3EA ; century PUBLIC ?year@@3EA ; year PUBLIC ?month@@3EA ; month PUBLIC ?day@@3EA ; day PUBLIC ?hour@@3EA ; hour PUBLIC ?minute@@3EA ; mi...
; ; Plot pixel at (x,y) coordinate. SECTION code_clib PUBLIC w_pointxy EXTERN pointxy_MODE0 EXTERN pointxy_MODE6 EXTERN pointxy_MODE64 EXTERN __zx_screenmode defc NEEDpointxy = 1 .w_pointxy ld a,(__zx_screenmode) cp 3 jp c,pointxy_MODE0 IF FORzxn bit 6,a jp nz,pointxy_MO...
; set A = 1, B=42 MOV 42, A SWP A, B MOV 1, A ; if A!=0 then Move B to &100 MNZ A, B, 100 MOV 0, A ; if A!=0 then Move B to &111 MNZ A, B, 111 ; show the results MOV &100, A SHW A MOV &111, A SHW A
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Busy soft ;; 26.11.2018 ;; Tape generating library ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Use: ;; ;; ................. ;; ...your...code... ;; ................. ;; include "TapLib.asm" ;; MakeTape <speccy_model>, <tape_file>,...
cpu 68000 page 0 ; basic 68000 modes move.l d3,d7 move.l a3,d7 move.l (a3),d7 move.l (a3)+,d7 move.l -(a3),d7 move.l 1000(a3),d7 ; "68000 style" move.l (1000,a3),d7 ; "68020 style" move.l 120(a3,a4.w),d7 ; "68000 style" move.l (120,a3,a4.w),d7 ; "68020 style" move.l 120(a3,a4.l),d7 ; "68000 style" m...
; --------------------------------------------------------------------------- ; Subroutine to react to obColType(a0) ; --------------------------------------------------------------------------- ; ||||||||||||||| S U B R O U T I N E ||||||||||||||||||||||||||||||||||||||| ReactToItem: nop move.w obX(a0),d2 ; lo...
DB 1:DB 2 ; legal syntax DB 3:DB 4 ; error without --dirbol ("DB" becomes label) DW 5 DW 6 ; error, no colon DW 7 DW 8 ; error without --dirbol and no colon ("DW" becomes label) OPT --dirbol DB 1:DB 2 ; legal syntax DB 3:DB 4 ; legal syntax with --dirbol ...
; Copyright 2021 Carl Georg Biermann ; Compile with: cl65 -t cx16 -o EXAMPLE04.PRG -C cx16-asm.cfg -u __EXEHDR__ "example_04_player.asm" .zeropage .include "concerto_synth/synth_zeropage.asm" .code jmp start .include "concerto_player/concerto_player.asm" .include "concerto_synth/x16.asm" ; get general X16 ma...
.org $8000 reset: lda #%11111111 blink: lda #%11111111 ; shift all bits in D0...D8 to the right lda #%11100111 sta $6000 ; data address for PORT B IO (8 pins) PORTA = $6001 ; data address for PORT B IO (8 pins) PORTB = $6000 ; register addresses to set to either Input ; or Output DDRA = $6003 DDRB = $6002 ; l...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ;TEST_BEGIN_RECORDING lea rdi, [rsp-0x300] and rdi, 0xFFFFFFFFFFFFFFF0 FXSAVE [rdi] FXRSTOR [rdi] mov edi, 0 ;TEST_END_RECORDING
; ; jquant.asm - sample data conversion and quantization (3DNow! & MMX) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; ; 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.inc ; ; ...
global _start section .data msg db 'The Sum is: ' msgLen equ $ - msg num1 db '12345' ; ASCII number1 num2 db '23456' ; ASCII number2 sum db ' ' ; To store result with 5 space section .text _start: mov ecx, 5 ; Loop 5 times mov esi, 4 ; Pointing to the right most digit, shift 4 clc ; Clean carry f...
BITS 16 ORG 0x7C00 ; Initialize segment registers mov ax, 0x0000 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ; Initialize stack pointer mov sp, 0x7C00 ; Print boot message mov si, booting_stage_one_str call print_str ; Check if BIOS LBA extension is present mov bx, 0x5...
#{ ~label 'memory' 0x0 ~label 'bios' 0xF ~label 'hpet' 0x1 ~label 'channel' 0x2 ~label 'boot' 0xF } ; set page to 0x400 (bios stage) .raw 0x3304000EF ; set memory channel zero .mva &(![~memory]) &(0x0) <| $(0x1) ; enable hpet .mva &(![~bios]) &(![~hpet]) <| $(0x1) ; set mem...
Route13_Object: db $43 ; border block def_warps def_signs sign 15, 13, 11 ; Route13Text11 sign 33, 5, 12 ; Route13Text12 sign 31, 11, 13 ; Route13Text13 def_objects object SPRITE_COOLTRAINER_M, 49, 10, STAY, RIGHT, 1, OPP_BIRD_KEEPER, 1 object SPRITE_COOLTRAINER_F, 48, 10, STAY, DOWN, 2, OPP_JR_TRAINER_F, ...
%include "include/u7si-all-includes.asm" [bits 16] startPatch EXE_LENGTH, rightClickToClose defineAddress 325, 0x086E, Button_checkCoords defineAddress 325, 0x08FF, Button_mouseInBounds defineAddress 325, 0x09E9, Button_notPressed defineAddress 325, 0x09FB, Button_notInBounds defineAddress 326, 0x0DEF, process...
; AddTwoSum_64.asm - Chapter 3 example. ExitProcess PROTO .data sum QWORD 0 .code main PROC mov rax, 5 add rax, 6 mov sum, rax mov rcx, 0 call ExitProcess main ENDP END
; void print(int stdout_stderr, char* str, size_t size); global print section .text print: push ebx mov edx,[esp+16] ; size_t size mov ecx,[esp+12] ; char* str mov ebx,[esp+8] ; STDOUT or STDERR mov eax,4 ; write syscall int 0x80 pop ebx ret
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Impex- DIB Graphics Translation Library FILE: exportManager.asm AUTHOR: maryann Simmons 2/92 REVISION HISTORY: Name Date Description ---- ----...
lda #<{c1} sec sbc {m1} sta {m1} lda #>{c1} sbc {m1}+1 sta {m1}+1 lda #<{c1}>>$10 sbc {m1}+2 sta {m1}+2 lda #>{c1}>>$10 sbc {m1}+3 sta {m1}+3
; pletter v0.5c msx unpacker ; call unpack with hl pointing to some pletter5 data, and de pointing to the destination. ; changes all registers ; define lengthindata when the original size is written in the pletter data ; define LENGTHINDATA module pletter ;OPTIMIZE_JUMP ; 0 : 140 bytes ; 1 : ...
;-----------------------------------------------------------------------------; ; Author: agix (florian.gaultier[at]gmail[dot]com) ; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4 ; Size: 448 bytes ;-----------------------------------------------------------------------------; [BITS 32] ; Input: EBP must be t...
HiddenItemCoords: ; map ID, then coords db SILPH_CO_5F, $03, $0c db SILPH_CO_9F, $0f, $02 db MANSION_3, $09, $01 db MANSION_4, $09, $01 db SAFARI_ZONE_WEST, $05, $06 db UNKNOWN_DUNGEON_2, $0d, $10 db UNKNOWN_DUNGEON_3, $0e, $08 db UNUSED_MAP_6F, $0b, $0e db SEAFOAM_ISLANDS_3, $0f, $0f db SEAFOAM_ISLANDS_4, $1...
; uint32_t esx_f_telldir(unsigned char handle) SECTION code_esxdos PUBLIC esx_f_telldir EXTERN asm_esx_f_telldir defc esx_f_telldir = asm_esx_f_telldir ; SDCC bridge for Classic IF __CLASSIC PUBLIC _esx_f_telldir defc _esx_f_telldir = esx_f_telldir ENDIF
; Library for manipulating null-terminated strings %PAGESIZE 255, 255 IDEAL P486N MODEL small STACK 200h INCLUDE "Types.inc" PUBLIC WordToStr, StrLen, StrConcat, InitString, TimeToString DATASEG TimeDelimmiter sString <1, ":"> ; TTSBuffer sString <> ; WTSBuffer db 256 dup (?) ; CODESEG ;----------------------...
; This file is generated from a similarly-named Perl script in the BoringSSL ; source tree. Do not edit by hand. default rel %define XMMWORD %define YMMWORD %define ZMMWORD %ifdef BORINGSSL_PREFIX %include "boringssl_prefix_symbols_nasm.inc" %endif section .text code align=64 EXTERN OPENSSL_ia32cap_P ...
copyright zengfr site:http://github.com/zengfr/romhack 007CF0 move.w (-$6e0a,A5), ($66,A6) [1p+59] 007CF6 tst.b ($58,A6) [1p+66] 00849A moveq #$0, D5 0084A2 rts [1p+66, container+66, enemy+66] 00A2C6 dbra D0, $a2c0 00A340 clr.w ($66,A4) 00A344 clr.b ($88,A4) copyright zengfr site:http://github.c...
title "Miscellaneous support routines" ;++ ; ;Copyright (c) 1991 Microsoft Corporation ; ;Module Name: ; ; vdmmisc.asm ; ;Abstract: ; ; This module contains miscellaneous support touines ; ;Author: ; ; Dave Hastings (daveh) 23-Feb-1992 ; ;Revision History: ; 18-Dec-1992 sudeepb wr...
GLOBAL loadPageDirectory GLOBAL enablePaging GLOBAL invalidateMapping GLOBAL flushAllPages ; C prototype: void loadPageDirectory(uint32_t *pageDirectory) ; Put pointer to page directory in CR3 loadPageDirectory: ; Function prologue push ebp mov ebp, esp ; Pop pointer mov eax, [esp + 8] mov cr...
IF TARGET == c64 STRING_WORKAREA EQU $CF00 ENDIF IF TARGET == vic20 STRING_WORKAREA EQU $1D00 ENDIF IF TARGET == vic20_3k STRING_WORKAREA EQU $0F00 ENDIF IF TARGET == vic20_8k || TARGET == c16 || TARGET == cplus4 STRING_WORKAREA EQU $3F00 ENDIF STRING_BUFFER1 EQU $033C STRING_BUFFER2 EQU $039D INCLUDE ...
; 3 sprites generated with spritemate on 09/03/2019, 16:31:22 ; Byte 64 of each sprite contains multicolor (high nibble) & color (low nibble) information LDA #$08 ; sprite multicolor 1 STA $D025 LDA #$06 ; sprite multicolor 2 STA $D026 ; sprite 1 / singlecolor / color: $01 sprite_1 !byte $00,$38,$00,$00,$fe,$00,$03...
TrainerClassAttributes: ; entries correspond to trainer classes (see constants/trainer_constants.asm) ; Falkner db NO_ITEM, NO_ITEM ; items db 25 ; base reward dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY dw CONTEXT_USE | SWITCH_SOMETIMES ; Whitney db NO_ITEM, NO_ITEM ; ...
section .text global main main: ; system call: write push dword _lamb_var_69_len push dword _lamb_var_69 push dword 1 mov eax, 4 sub esp, 4 int 128 add esp, 16 ; system call: exit push dword 0 mov eax, 1 sub esp, 4 int 128 section .data _lamb_var_69: db "Hello World!", 0x0a _lamb_var...
; void *tshc_pxy2saddr(uchar x, uchar y) SECTION code_clib SECTION code_arch PUBLIC tshc_pxy2saddr_callee EXTERN zx_pxy2saddr_callee defc tshc_pxy2saddr_callee = zx_pxy2saddr_callee ; SDCC bridge for Classic IF __CLASSIC PUBLIC _tshc_pxy2saddr_callee defc _tshc_pxy2saddr_callee = tshc_pxy2saddr_callee ENDIF
; membuat fungsi string slen: push ebx mov ebx, eax nextchar: cmp byte[eax], 0 jz finish jnz eax jmp nextchar finish: sub eax, ebx pop ebx ret ; fungsi len pada pesan string sprint: push edx push ecx push ebx push eax call slen mov edx, eax pop eax mov ecx, eax mov ebx, 1 mov ...
TITLE DISK - Disk utility routines NAME Disk ; ; Microsoft Confidential ; Copyright (C) Microsoft Corporation 1991 ; All Rights Reserved. ; ;** Low level Read and write routines for local SFT I/O on files and devs ; ; SWAPCON ; SWAPBACK ; DOS_READ ; DOS_WRITE ; get_io_sft ; DirRead ; FIRSTCLUSTER ; SET_BUF_AS_DIR ;...
MtMoonB1F_Script: call EnableAutoTextBoxDrawing ret MtMoonB1F_TextPointers: dw MtMoonText1 MtMoonText1: TX_FAR _MtMoonText1 db "@"
;A switch is connected to port pin P0.1. Write an 8051 assembly language program to check the status ;of the switch and perform the following ;(i). If switch = 1 send a High to Low pulse to activate a siren connected to port pin P1.7 ;(ii). Continue monitoring the pin status ORG 0000H MOV P0,#0FFH MOV P1,#00H B...
INCLUDE "test_framework.asm" INCLUDE "memory.asm" test_main: call test_or_behaviour call test_cp_behaviour call test_dec16_behaviour call test_memset_bc call test_memzero call test_memcpy_bc ret test_or_behaviour: test_plan 2 xor a or a test_assert_true z ld a, 1 or a test_assert_true nz...
///MemoryAccess\StaticTest\StaticTest.asm /// @111 D=A @SP A=M M=D @SP M=M+1 @333 D=A @SP A=M M=D @SP M=M+1 @888 D=A @SP A=M M=D @SP M=M+1 @SP AM=M-1 D=M @StaticT.8 M=D @SP AM=M-1 D=M @StaticT.3 M=D @SP AM=M-1 D=M @StaticT.1 M=D @StaticT.3 D=M @SP A=M M=D @SP M=M+1 @StaticT...
IonJumpmap: jp iVersion jp iRandom jp iPutSprite jp iLargeSprite jp iGetPixel jp iFastCopy jp iDetect jp iDecompress #define mossupport #ifdef mossupport moslibs: directin: jp mj_directIn sendbytetios: jp mj_sendbytetios getbytetios: jp mj_getbytetios version: ...
; int bv_stack_push(bv_stack_t *s, int c) SECTION code_clib SECTION code_adt_bv_stack PUBLIC bv_stack_push_callee EXTERN b_vector_append_callee defc bv_stack_push_callee = b_vector_append_callee ; SDCC bridge for Classic IF __CLASSIC PUBLIC _bv_stack_push_callee defc _bv_stack_push_callee = bv_stack_push_callee E...
<% from pwnlib.shellcraft import amd64 %> <%page args="fd=0, target_reg='rdx'"/> <%docstring>Reads 8 bytes into the specified register</%docstring> push 1 ${amd64.linux.read(fd, 'rsp', 8)} pop ${target_reg}
; A321213: a(n) is the number of divisors of n-th Fermat number (A000215). ; 2,2,2,2,2,4,4,4,4,8,16,32 lpb $0 add $1,$0 sub $2,$0 lpb $0 mod $0,5 add $0,$2 mov $1,$0 add $2,$0 lpe max $2,$1 mov $0,$2 sub $0,4 add $3,4 mul $3,2 lpe mov $0,$3 div $0,4 add $0,2
or $1,$0,$3 sw $3,16($0) or $3,$3,$3 lhu $1,4($0) lw $1,0($0) sh $3,8($0) sb $1,12($0) nor $1,$1,$3 addiu $4,$4,10881 addiu $4,$0,31239 ori $3,$3,48489 sll $1,$1,22 subu $5,$3,$3 sltiu $1,$1,29008 addu $1,$3,$3 lb $5,13($0) addiu $4,$4,5153 srl $5,$3,24 sll $3,$3,13 sltiu $6,$4,-28816 sra $1,$5,14 lbu $4,5($0) addiu $3...
; Z88 Small C+ Run time Library ; l_gint variant to be used sometimes by the peephole optimizer ; SECTION code_clib SECTION code_l_sccz80 PUBLIC l_gintsp2de l_gintsp2de: ex de,hl pop hl ex (sp),hl ex de,hl add hl,sp ;IF EZ80 ; defb 0xed, 0x27 ;ld hl,(hl) ;ELSE ld a,(hl) inc hl ld h,(hl)...
; ; Generic pseudo graphics routines for text-only platforms ; SECTION code_clib PUBLIC xorpixel .xorpixel defc NEEDxor = 1 INCLUDE "pixel.asm"
SECTION code_fp_dai32 PUBLIC l_f32_ne EXTERN l_f32_yes EXTERN l_f32_no EXTERN ___dai32_setup_comparison ; Stack == registers l_f32_ne: call ___dai32_setup_comparison ; Flags: cy=1,S=0,Z=1 -> both numbers 0 ; cy=0,S=0,Z=1 -> both numbers identical ; cy...
; === choice_menu.asm ; Functions that aid in creating option choice menus. ; Create and display a new choice menu. ; bc -> textbox dimensions ; hl -> menu text ; Selected option index is saved to A upon completion. _PrintChoiceMenu: push bc push de call SaveScreenTilesToBuffer1 pop de pop bc ...
-- 7 Billion Humans -- -- 26: Budget Brigate 2 -- -- Size: 12/14 -- -- Speed: 242/75 -- a: if s == printer: takefrom s endif if s == shredder and myitem != nothing: giveto s endif if n == person: giveto n endif if e == person and w == person: if myitem >= 50: giveto e else: giveto w endif endif jump a
section .text global inb8 global outb8 global inb16 global outb16 global inb32 global outb32 inb8: mov edx,[esp+4] in al,dx ret outb8: mov edx,[esp+4] mov al,[esp+4+4] out dx,al ret inb16: mov edx,[esp+4] in ax,dx ret outb16: mov edx,[esp+4] mov ax,[...
; ; $Id: 0x0c.asm,v 1.1.1.1 2016/03/27 08:40:12 raptor Exp $ ; ; 0x0c explanation - from xchg rax,rax by xorpd@xorpd.net ; Copyright (c) 2016 Marco Ivaldi <raptor@0xdeadbeef.info> ; ; This snippet takes the value stored in rax and rcx, which ; is the same for both registers, and performs the following ; operations resp...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END mov ecx, 2 MOVD xmm0, ecx mov ecx, 0 ;TEST_BEGIN_RECORDING lea rcx, [rsp-4] movd [rcx], xmm0 mov eax, [rcx] mov ecx, 0 ;TEST_END_RECORDING cvtsi2sd xmm0, ecx
[bits 64] idt_base: times (256 * 8) db 0 idt: .limit: dw (idt - idt_base) - 1 .base: dq idt_base %define EXCEPT_REPORT_MAGIC 0x215f25d0 struc except_report .magic: resd 1 .vec: resq 1 .rsp00: resq 1 .rsp08: resq 1 .rsp10: resq 1 .rsp18: resq 1 .kern: resq 1 .cr2: resq 1 .stack: resb 1024 endstruc ...
db DEX_SPEAROW ; pokedex id db 40 ; base hp db 60 ; base attack db 30 ; base defense db 70 ; base speed db 31 ; base special db NORMAL ; species type 1 db FLYING ; species type 2 db 255 ; catch rate db 58 ; base exp yield INCBIN "pic/ymon/spearow.pic",0,1 ; 55, sprite dimensions dw SpearowPicFront dw SpearowPicBack ; a...
; SCROM: 64KB PRG-ROM + 128KB CHR-ROM ; http://bootgod.dyndns.org:7777/search.php?keywords=SCROM&kwtype=pcb ; Appears to only have been used for a handful of NES games, mostly USA. ; [SC1ROM has a nonstandard pinout, but that doesn't matter for iNES headers.] ;-----------------------------------------------------------...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved GEOWORKS CONFIDENTIAL PROJECT: Socket MODULE: Socket library FILE: socketConnection.asm AUTHOR: Eric Weber, Jun 5, 1994 ROUTINES: Name Description ---- ---------...
mov A, a3h mov B, A add B, B out B; (out = 46h) mov C, A mul C, 2 out C; (out = 46h) mov D, A shl D, 1 out D; (out = 46h) mov A, 24h mov B, A shr B, 1 out B; (out = 12h) mov C, A sub C, B out C; (out = 12h)
; http://shell-storm.org/shellcode/files/shellcode-611.php ; original: 42 ; poly: 53 global _start section .text _start: inc esp inc ebp cdq dec esp dec ebp push edx push 0x61616161 inc edx mov ecx,esp dec edx push edx push 0x74 push 0x6567772f push 0x6e69622f ...
SECTION code_fp_mbf64 PUBLIC l_f64_dpush3 EXTERN ___mbf64_FA ;------------------------------------------------------ ; Push FA onto stack under ret address and stacked long ;------------------------------------------------------ l_f64_dpush3: pop de ;return address pop bc ;LSW of long po...
;;----------------------------------------------------------------------------;; ;; Update the cursor coordinates for the egg comments. ;; Copyright 2015 Benito Palacios (aka pleonex) ;; ;; Licensed under the Apache License, Version 2.0 (the "License"); ;; you may not use this file except in compliance with the Lic...
MOV AL,15 ; load the value of AL MOV BL,08 ; load the value of BL SUB AL,BL ; AL=AL-BL DAA ; adjust the decimal after subtraction RET
LDA #5 STA X MUL LDA #4 MUL STA Y ADD MUL LDA X MUL ADD LDA Y ADD STA Z X RESW 1 T0 RESW 1 Y RESW 1
// Minimal union with C-Standard behavior - union return value // Commodore 64 PRG executable file .file [name="union-8.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment B...
ori $ra,$ra,0xf mult $1,$3 srav $0,$0,$0 mflo $1 lui $0,44741 lui $4,43310 lb $1,6($0) addiu $4,$2,26427 mfhi $5 mthi $5 mtlo $2 lb $1,3($0) multu $4,$4 mfhi $5 addiu $6,$2,-15371 mthi $1 mult $5,$5 mflo $1 mtlo $0 div $0,$ra ori $2,$2,6966 sb $4,10($0) mfhi $3 mflo $4 mfhi $5 div $5,$ra mult $0,$1 addiu $3,$3,29187 lu...
OPTION DOTNAME .text$ SEGMENT ALIGN(256) 'CODE' EXTERN OPENSSL_ia32cap_P:NEAR PUBLIC RC4 ALIGN 16 RC4 PROC PUBLIC mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov rax,rsp $L$SEH_begin_RC4:: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 or rsi,rsi jne $L$entry mov rdi,QWORD PTR[8+rsp...
BITS 32 org 0x7C00 start: mov esi, msg call puts jmp 0 puts: mov al, [esi] inc esi cmp al, 0 je puts_end mov ah, 0x0E mov ebx, 0x0B int 0x10 jmp puts puts_end: ret msg: db "hello, world", 0x0D, 0x0A, 0
// seed 4 lbi r0, 75 // icount 0 slbi r0, 215 // icount 1 lbi r1, 191 // icount 2 slbi r1, 75 // icount 3 lbi r2, 186 // icount 4 slbi r2, 164 // icount 5 lbi r3, 37 // icount 6 slbi r3, 173 // icount 7 lbi r4, 240 // icount 8 slbi r4, 118 // icount 9 lbi r5, 215 // icount 10 slbi r5, 127 // icount 11 lbi r6, 167 // ic...
; Copyright 2020 Google LLC ; ; 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 w...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: MOUSE DRIVER -- Microsoft serial mouse FILE: msser.asm AUTHOR: Adam de Boor, April 11, 1989 ROUTINES: Name Description ---- ----------- M...
IntxLNKcorsi@corsi-note.4328:1588076102