summaryrefslogtreecommitdiff
path: root/src/cpu/table.c
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-12-07 04:39:33 +1100
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-12-07 04:39:33 +1100
commit68cdad3be01539e583627e1c8929f182255541be (patch)
tree15349096a94ac9b3383f1d6af2266f2024ef107b /src/cpu/table.c
parent98dd41e2ce7dedb81ab91342eed29da017006ea4 (diff)
small changes
Diffstat (limited to 'src/cpu/table.c')
-rw-r--r--src/cpu/table.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/table.c b/src/cpu/table.c
index 4e60f58..052fce7 100644
--- a/src/cpu/table.c
+++ b/src/cpu/table.c
@@ -5,7 +5,7 @@
void* InstructionTable;
-void (*func)(Addressing, address);
+void (*func)(Addressing);
uintptr_t* GetInstructionTableFunction(int i){ //Segmentation fault is occurring here, likely in next one too
uintptr_t* r = (InstructionTable + (sizeof(uintptr_t)*i));
@@ -20,7 +20,7 @@ Addressing* GetInstructionTableAddressing(int i){
void CallInstructionTable(){
int val = 0;
// Setup to call the correct function.
- int i = (address)GetMemory(PC);
+ int i = (int)GetMemory(PC);
uintptr_t a = GetInstructionTableFunction(i);
memcpy(&func, a, sizeof(uintptr_t));
// Find the correct addressing mode.
@@ -36,7 +36,7 @@ void CallInstructionTable(){
idata = fAddress(r, val);
// Perform function
- func(r, val); // TODO: MARKER FOR 3/12/2023
+ func(r);
PC += idata.length;