Skip to content

Instantly share code, notes, and snippets.

View thacuber2a03's full-sized avatar
💧
|100 @\loop alloc POP2 !loop

x4n3ku thacuber2a03

💧
|100 @\loop alloc POP2 !loop
View GitHub Profile
@hausdorff
hausdorff / math.asm
Last active December 23, 2024 12:13
mod and div implemented in 6502 asm
; load some data up
LDA #$7
STA $00 ; memory addr A
LDA #$05
STA $01 ; memory addr B
JMP Divide
;modulus, returns in register A
Mod:
LDA $00 ; memory addr A