From 65e93275c17c14eea06d495958ed77fe569ce8f1 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Mon, 1 May 2023 14:16:00 +1000 Subject: changed directory structure, and other minor stuff --- test/02-Stack | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'test/02-Stack') 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 + + + -- cgit v1.2.3