summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2019-11-30 19:57:46 -0500
committermrb0nk500 <b0nk@b0nk.xyz>2019-11-30 19:57:46 -0500
commitca89989d057a19b647514656d96d00ff23be9640 (patch)
tree1259b343d60680a4354a1a54b90d0d7418af770b /test
parent10ec62e8025eb43d1a096fb0962049670c3c148c (diff)
Start work on rev2 of Sux.
Added a prefix byte to tell the CPU certain information such as, how many bytes to load into the registers, or what ISA extension we want to use. I also added an assembly language monitor, so that I don't have to write stuff in machine code.
Diffstat (limited to 'test')
-rw-r--r--test/test.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test.s b/test/test.s
new file mode 100644
index 0000000..3e8a7f2
--- /dev/null
+++ b/test/test.s
@@ -0,0 +1,13 @@
+; Testing Sux assembly, and the machine language monitor.
+;
+; Writen by mr b0nk 500 <b0nk@b0nk.xyz>
+.org $8000
+cps ; Clear the processor status register.
+lda.w #$1000 ; Load 0x1000 into the accumulator.
+rol #$1 ; Then rotate the accumulator left by 1 bit.
+jmp $8006 ; And then loop.
+
+.org $FFC0 ; Reset vector.
+.qword $8000
+done
+