From 138bb8eeb4b67ab17a6d77e7afa9cd265759da0d Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Sat, 29 Apr 2023 18:04:49 +1000 Subject: misc. fixes, finished LDA test. --- test/01-LDA | 33 +++++++++++++++++++++++++++++++++ test/02-Stack | 2 ++ test/03-Arithmetic | 2 ++ test/adc | 0 test/load | 19 ------------------- 5 files changed, 37 insertions(+), 19 deletions(-) create mode 100644 test/01-LDA create mode 100644 test/02-Stack create mode 100644 test/03-Arithmetic delete mode 100644 test/adc delete mode 100644 test/load (limited to 'test') diff --git a/test/01-LDA b/test/01-LDA new file mode 100644 index 0000000..7b0f0d1 --- /dev/null +++ b/test/01-LDA @@ -0,0 +1,33 @@ +# 01-LDA +#This test verifies if each addressing mode works, using the LDA instruction. + +#Init Memory + +s0007.10 +s0008.02 +s0009.02 +s000a.64 +s000b.48 +s000c.32 +s0202.11 +s0212.22 + +#Init Registers + +a201 #LDX $1 +a002 #LDY $2 + +#Tests + +a9ff 8510 #LDA Immediate store in 0010 +a50a 8511 #LDA ZP 0a store in 0011 +b50a 8512 #LDA ZP+X 0a store in 0012 +ad000a 8513 #LDA Abs store in 0013 +bd000a 8514 #LDA Abs+X store in 0014 +b9000a 8515 #LDA Abs+Y store in 0015 +a107 8517 #LDA In. X store in 0018 +b107 8518 #LDA In. Y store in 0019 + +#Print 00 Page +m00 +q diff --git a/test/02-Stack b/test/02-Stack new file mode 100644 index 0000000..037ae10 --- /dev/null +++ b/test/02-Stack @@ -0,0 +1,2 @@ +# 02-Stack +#This test checks whether each stack operation functions as expected. diff --git a/test/03-Arithmetic b/test/03-Arithmetic new file mode 100644 index 0000000..72b40e1 --- /dev/null +++ b/test/03-Arithmetic @@ -0,0 +1,2 @@ +# 03-Arithmetic +#Tests ADC, SBC, and all increment operations for value and flag correctness. diff --git a/test/adc b/test/adc deleted file mode 100644 index e69de29..0000000 diff --git a/test/load b/test/load deleted file mode 100644 index 14cdc44..0000000 --- a/test/load +++ /dev/null @@ -1,19 +0,0 @@ -#/Beginning of test. -s0000.01 -s0001.02 -s000a.64 -s000b.48 -s020c.7f - -a201 #LDX $1 - -a9ff 8510 #LDA FF, store in 0010 -a50a 8511 #LDA ZP 0a, store in 0011 -b50a 8512 #LDA ZP+X 0a, store in 0012 - -ad000a 8513 #LDA Abs, store in 0013 -bd000a 8513 #LDA Abs+X, store in 0014 - -m00 -m0001 -q -- cgit v1.2.3