summaryrefslogtreecommitdiff
path: root/src/cpu/table.c
diff options
context:
space:
mode:
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;