From 44a1ea6542c812b173fb9685837c0b2fdc6a7c61 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Wed, 29 Nov 2023 17:38:56 +1100 Subject: bug fix apple.c:9 + inconsequential refactoring --- src/cpu/table.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/cpu/table.h') diff --git a/src/cpu/table.h b/src/cpu/table.h index c8ecb00..18cac90 100644 --- a/src/cpu/table.h +++ b/src/cpu/table.h @@ -1,7 +1,6 @@ // table.h // Defines the instruction table, and the functions to access it. -#ifndef TABLE_H -#define TABLE_H +#pragma once #include"stdint.h" #include"stdlib.h" @@ -11,16 +10,14 @@ #define InstructionTableSize (256 * (sizeof(uintptr_t) + sizeof(Addressing))) -uintptr_t* getInstructionTableFunction(int i); +uintptr_t* GetInstructionTableFunction(int i); -Addressing* getInstructionTableAddressing(int i); +Addressing* GetInstructionTableAddressing(int i); -void callInstructionTable(int i, address val); +void CallInstructionTable(int i, address val); -void setInstructionTable(int i, uintptr_t p, Addressing r); // Sets an individual portion of an instruction set +void SetInstructionTable(int i, uintptr_t p, Addressing r); -void initInstructionTable(); -// Initializes entirety of the instruction table in memory. - -#endif \ No newline at end of file +// Initializes instruction table in memory. +void InitInstructionTable(); \ No newline at end of file -- cgit v1.2.3