From 68cdad3be01539e583627e1c8929f182255541be Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Thu, 7 Dec 2023 04:39:33 +1100 Subject: small changes --- src/cpu/table.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cpu/table.c') 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; -- cgit v1.2.3