summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-04-21 16:12:16 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-04-21 16:12:16 +1000
commit83e8a4494741e6257b18267a58fe8ae342e3229f (patch)
tree001d5094f713118834e9a0fb5313df4cf40ecc7a /test.c
parentae800796cdcce21c561bcbfbc96b29efe4d39a0b (diff)
changed dirs, now testing instructions.
Diffstat (limited to 'test.c')
-rw-r--r--test.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/test.c b/test.c
index 2ced76c..21e9c5d 100644
--- a/test.c
+++ b/test.c
@@ -1,17 +1,19 @@
+// test.c
+// Temporary .c file where arbitrary tests are carried out.
+
#include"headers/include.h"
#include"headers/debug.h"
int main(int argc, char *argv[]){
+ AppleOn();
initInstructionTable();
- byte* a;
- for(int i = 0; i < InstructionTableSize; i++){
- a = InstructionTable + i;
- printf("%x\t", *a);
- if ((i % 8) == 7) printf("\n");
- }
+ dStatusDump();
+
+ fLDA(eImmediate, 0x01);
+ fSTA(eAbsolute, 0x09);
+
+ dStatusDump(); printf("\n");
- printf("\n"); dStatusDump(); dIdataDump(); printf("%x\n", &fLDA); printf("\n");
- callInstructionTable(0xA9, 0x01);
- dStatusDump(); dIdataDump(); printf("\n");
+ dPageDump(0x00);
} \ No newline at end of file