1
0
mirror of https://github.com/specht/champ.git synced 2024-12-27 04:29:39 +00:00
champ/examples/example03.s
2018-02-16 21:50:01 +01:00

24 lines
366 B
ArmAsm

DSK test
MX %11
ORG $6000
FOO EQU $8000 ; @u8
JSR TEST
BRK
TEST LDX #$FF
LDA #1
LOOP TAY
TXA
EOR #$FF
LSR
LSR
STA FOO
TYA
CLC
ADC FOO ; @Au(post)
DEX ; @Xu(post) @Au,FOO(post)
BNE LOOP
RTS