diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-05-01 14:16:00 +1000 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-05-01 14:16:00 +1000 |
commit | 65e93275c17c14eea06d495958ed77fe569ce8f1 (patch) | |
tree | 4e9ee5a9bbbc6ac1ea5a4b38dd2cace48bbb5c70 /test/02-Stack | |
parent | 8f09f4249cec8ccc187b3f9ee5094fb3080900a9 (diff) |
changed directory structure, and other minor stuff
Diffstat (limited to 'test/02-Stack')
-rw-r--r-- | test/02-Stack | 57 |
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 + + + |