diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-21 03:44:47 +1000 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-21 03:44:47 +1000 |
commit | ee742e6020248f9695cc9ce5bbace5f42814383e (patch) | |
tree | d8be3463f30027c965e821ac63b8b6eae047390d /test.c | |
parent | c4c28762385c52d0c349da72e3f3bbed64197411 (diff) |
have to call it a night.
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 45 |
1 files changed, 23 insertions, 22 deletions
@@ -1,23 +1,24 @@ -#include"include.h" -#include"debug.h" - -int main(){ - char c; - unsigned char a, b; - - initIT(); - - printf("\n\n"); - - dStatusDump(); dIdataDump(); printf("\n"); - - //func(*(IT + ((sizeof(uintptr_t)*256)) + (0xA9 * sizeof(Addressing))), *(IT + ((sizeof(uintptr_t)*0xA9)))); - - callIT(0xA9, 0x01); - - dStatusDump(); dIdataDump(); - - printf("%x\n", (IT + 31)); - - return 0; +#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"); }
\ No newline at end of file |