diff options
Diffstat (limited to 'test/reg-transfer.s')
-rw-r--r-- | test/reg-transfer.s | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/test/reg-transfer.s b/test/reg-transfer.s index 580020c..abedc5b 100644 --- a/test/reg-transfer.s +++ b/test/reg-transfer.s @@ -2,21 +2,18 @@ ; ; by mr b0nk 500 <b0nk @b0nk.xyz> -cps -inc ; Increment the accumulator. -tay ; Transfer the accumulator to the y register. -tax ; Do the same thing, but with the x register. -jmp $1 ; Loop forever. - .org $8000 -cps -inc ; Increment the accumulator. -tay ; Transfer the accumulator to the y register. -tax ; Do the same thing, but with the x register. -jmp $1 ; Loop forever. +reset: + cps +bench: + inc ; Increment the accumulator. + tay ; Transfer the accumulator to the y register. + tax ; Do the same thing, but with the x register. + tab ; + jmp bench ; Loop forever. -.org $FF50 -.qword $8000 +.org $FFC0 +.qword reset ; Execute the program. done |