summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-04-20 12:51:50 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-04-20 12:51:50 +1000
commitc138759ebf4194a73364a79a9acc87f54dcc73bc (patch)
treebe113336c04e39954863a55e8a39e7c46a404f4e /test.c
parent10fedb851f6654874a644f4b158a4d9d404da14e (diff)
callIT() FINALLY WORKS
Diffstat (limited to 'test.c')
-rw-r--r--test.c28
1 files changed, 22 insertions, 6 deletions
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