diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-12-08 06:52:14 +1100 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-12-08 06:52:14 +1100 |
commit | d28ad56810b43cb3ea5d11e5e32042f69ee04562 (patch) | |
tree | 0d0fd8976b253bf6aafed6e1449a1d4e69f658ab /src/cpu/table.h | |
parent | 5012497d6e59d787195d177d02faa55242bf7e40 (diff) |
major refactor of cpu code
Diffstat (limited to 'src/cpu/table.h')
-rw-r--r-- | src/cpu/table.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/cpu/table.h b/src/cpu/table.h index 7406c9c..70be525 100644 --- a/src/cpu/table.h +++ b/src/cpu/table.h @@ -7,17 +7,11 @@ #include"string.h" #include"addressing.h" - -#define InstructionTableSize (256 * (sizeof(uintptr_t) + sizeof(Addressing))) - -uintptr_t* GetInstructionTableFunction(int i); - -Addressing* GetInstructionTableAddressing(int i); - +// Runs the next instruction through the CPU void CallInstructionTable(); // Sets an individual portion of an instruction set -void SetInstructionTable(int i, uintptr_t p, Addressing r); +void SetInstructionTable(int index, void* function, Addressing addressing, int cycles); // Initializes instruction table in memory. void InitInstructionTable(); |