summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-07-06 20:04:41 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-07-06 20:04:41 -0400
commit756c606af68be8ccca7aced3b9c3d56fb2d5087f (patch)
treefbc02b63feb1933a213d26ae68ab1b1a104e4ef3 /test
parent887802efcdb3b56263069cc6778a8f53ed89d599 (diff)
- Implemented a new opcode table.
- Added a new preifx called the OF prefix, which adds the contents of a specific register to the current operand. - Added a table generator, which parses opcode table csv files.
Diffstat (limited to 'test')
-rw-r--r--test/stack-frame.s32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/stack-frame.s b/test/stack-frame.s
new file mode 100644
index 0000000..6e64b86
--- /dev/null
+++ b/test/stack-frame.s
@@ -0,0 +1,32 @@
+; Testing stack frames.
+; Written by mr b0nk 500 <b0nk@b0nk.xyz>
+
+.org $8000
+reset:
+ cps ;
+ ldx.w #$FFFF ;
+ txs ;
+ lda #0 ;
+ tay ;
+ tax ;
+ tab ;
+start:
+ inc ;
+ pha ;
+ ldb sp, $1 ;
+ pla ;
+ sta $0 ;
+ phy.q ;
+ ldb (sp, $8) ;
+ ply.q ;
+ ldb (sp, -$8) ;
+ bra start ;
+
+.org $FFC0
+.qword reset
+a
+;.org reset
+;v
+;q
+d
+