summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/test.c b/test.c
index 7da793c..2ced76c 100644
--- a/test.c
+++ b/test.c
@@ -4,21 +4,14 @@
int main(int argc, char *argv[]){
initInstructionTable();
- uintptr_t* a;
- Addressing* b;
- for(int i = 0; i < 256; i++){
- a = InstructionTable + (i * sizeof(uintptr_t));
- printf("\t%x", *a); if(*a < 0x10) printf("\t");
- if ((i % 4) == 3) printf("\n");
+ byte* a;
+ for(int i = 0; i < InstructionTableSize; i++){
+ a = InstructionTable + i;
+ printf("%x\t", *a);
+ if ((i % 8) == 7) printf("\n");
}
- for(int i = 0; i < 256; i++){
- b = InstructionTable + (256 * sizeof(uintptr_t)) + (i * sizeof(Addressing));
- printf("\t%x", *b); if(*b < 0x10) printf("\t");
- if ((i % 4) == 3) printf("\n");
- }
- printf("\n");
- dStatusDump(); dIdataDump(); printf("\n");
- callInstructionTable(0x00, 0x01);
+ printf("\n"); dStatusDump(); dIdataDump(); printf("%x\n", &fLDA); printf("\n");
+ callInstructionTable(0xA9, 0x01);
dStatusDump(); dIdataDump(); printf("\n");
} \ No newline at end of file