mirror of
https://github.com/specht/champ.git
synced 2024-10-20 01:24:12 +00:00
22 lines
342 B
ArmAsm
22 lines
342 B
ArmAsm
|
DSK test
|
||
|
MX %11
|
||
|
ORG $6000
|
||
|
|
||
|
FOO EQU $8000 ; @u8
|
||
|
|
||
|
JSR TEST
|
||
|
RTS
|
||
|
|
||
|
TEST LDX #$FF
|
||
|
LDA #1
|
||
|
LOOP TAY
|
||
|
TXA
|
||
|
EOR #$FF
|
||
|
LSR
|
||
|
LSR
|
||
|
STA FOO
|
||
|
TYA
|
||
|
ADC FOO ; @Au(post)
|
||
|
DEX ; @Xu(post) @Au,FOO(post)
|
||
|
BNE LOOP
|