From 756c606af68be8ccca7aced3b9c3d56fb2d5087f Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Mon, 6 Jul 2020 20:04:41 -0400 Subject: - 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. --- test/stack-frame.s | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 test/stack-frame.s (limited to 'test') 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 + +.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 + -- cgit v1.2.3-13-gbd6f