summaryrefslogtreecommitdiff
path: root/test/02-Stack
diff options
context:
space:
mode:
Diffstat (limited to 'test/02-Stack')
-rw-r--r--test/02-Stack57
1 files changed, 57 insertions, 0 deletions
diff --git a/test/02-Stack b/test/02-Stack
index 037ae10..50c760c 100644
--- a/test/02-Stack
+++ b/test/02-Stack
@@ -1,2 +1,59 @@
# 02-Stack
#This test checks whether each stack operation functions as expected.
+
+#MNEMONIC HEX
+#TXS (Transfer X to Stack ptr) $9A
+#TSX (Transfer Stack ptr to X) $BA
+#PHA (PusH Accumulator) $48
+#PLA (PuLl Accumulator) $68
+#PHP (PusH Processor status) $08
+#PLP (PuLl Processor status) $28
+
+p
+
+/Push/Pull Accumulator Test
+
+a9 01
+
+48
+
+a9 10
+
+48
+
+68
+
+68
+
+p
+
+m01
+
+/~~~~TXS/TSX Test
+
+a27f
+
+/Status after LDX 7f
+p
+
+9a
+
+/Status after TXS
+p
+
+68
+
+68
+
+/Status after 2 PLA
+p
+
+ba
+
+/Status after TSX
+p
+
+q
+
+
+