summaryrefslogtreecommitdiff
path: root/test/reg-transfer.s
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-04-09 02:06:50 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-04-09 02:06:50 -0400
commitc5150ee31f07208422f1435de9b35a0d0168cbb5 (patch)
tree78150bf0339cf81401c00973f96c94a3c231015e /test/reg-transfer.s
parent59dc46ca8fe1eb6f98abb98fe8579aeaedd2ff15 (diff)
Completely changed the assembler.
It now has a lexer/tokenizer, along with a parser. I have also made the emulator even smaller.
Diffstat (limited to 'test/reg-transfer.s')
-rw-r--r--test/reg-transfer.s23
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