blob: 7da793cf8264852ddf9a216fb285712d6f3314cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include"headers/include.h"
#include"headers/debug.h"
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");
}
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);
dStatusDump(); dIdataDump(); printf("\n");
}
|