1
0
mirror of https://github.com/fachat/xa65.git synced 2024-11-04 13:06:43 +00:00
xa65/xa/tests/adrm/c02.asm
2011-12-16 23:04:51 +01:00

34 lines
343 B
NASM

.word $0400
* = $0400
q = $0005
fizz
/* these should be optimized to zero page */
sta $05
sta $0005
sta q
dec q
inc q
/* these should not */
stx !$0005
sta !q
sta $8765
stx $919c
inc !q
inc; a
dec $8342
dec; a
sta $4431
inc $79e0
sty $1b0a
jsr $ffe4
jmp $fce2
jmp breadbox
lsr $2020
rts
breadbox rts
bne fizz
rts