summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
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