diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-21 16:12:16 +1000 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-21 16:12:16 +1000 |
commit | 83e8a4494741e6257b18267a58fe8ae342e3229f (patch) | |
tree | 001d5094f713118834e9a0fb5313df4cf40ecc7a /test.c | |
parent | ae800796cdcce21c561bcbfbc96b29efe4d39a0b (diff) |
changed dirs, now testing instructions.
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 |