diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-20 12:51:50 +1000 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-20 12:51:50 +1000 |
commit | c138759ebf4194a73364a79a9acc87f54dcc73bc (patch) | |
tree | be113336c04e39954863a55e8a39e7c46a404f4e /test.c | |
parent | 10fedb851f6654874a644f4b158a4d9d404da14e (diff) |
callIT() FINALLY WORKS
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 28 |
1 files changed, 22 insertions, 6 deletions
@@ -2,10 +2,26 @@ #include"debug.h" int main(){ - fAddressGetLength(eAbsolute); - printf("fAddressGetLength Success\n"); - getITFunction(0x00); - printf("getITFunction Success\n"); - getITAddressing(0x00); - printf("getITAddressing Success\n"); + char c; + unsigned char a, b; + + initIT(); + + //void (*func)(Addressing, address); printf("Statement OK"); + + printf("\n\n"); + + func = &fLDA; + + dStatusDump(); + + //func(*(IT + ((sizeof(uintptr_t)*256)) + (0xA9 * sizeof(Addressing))), *(IT + ((sizeof(uintptr_t)*0xA9)))); + + callIT(0xA9, 0x01); + + dStatusDump(); + + printf("%x\n", (IT + 31)); + + return 0; }
\ No newline at end of file |