diff options
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -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 |