1
0
mirror of https://github.com/fachat/xa65.git synced 2024-11-03 06:05:58 +00:00
xa65/xa/tests/adrm/c02.asm

34 lines
343 B
NASM
Raw Normal View History

2011-12-16 22:04:51 +00:00
.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