From c138759ebf4194a73364a79a9acc87f54dcc73bc Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Thu, 20 Apr 2023 12:51:50 +1000 Subject: callIT() FINALLY WORKS --- test.c | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'test.c') diff --git a/test.c b/test.c index b8cecd6..1ae1aff 100644 --- a/test.c +++ b/test.c @@ -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 -- cgit v1.2.3