1
0
mirror of https://github.com/specht/champ.git synced 2024-06-17 09:29:33 +00:00
champ/examples/example03.s

24 lines
366 B
ArmAsm
Raw Normal View History

2018-02-16 14:05:05 +00:00
DSK test
MX %11
ORG $6000
FOO EQU $8000 ; @u8
JSR TEST
BRK
2018-02-16 14:05:05 +00:00
TEST LDX #$FF
LDA #1
LOOP TAY
TXA
EOR #$FF
LSR
LSR
STA FOO
TYA
2018-02-16 17:44:27 +00:00
CLC
2018-02-16 14:05:05 +00:00
ADC FOO ; @Au(post)
DEX ; @Xu(post) @Au,FOO(post)
BNE LOOP
RTS