From c1d5bf8ab7648418fa7120ea4868205f3cf7e857 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Mon, 8 May 2023 09:49:43 +1000 Subject: instructions done, plus minor changes --- src/cpu/addressing.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cpu/addressing.h') diff --git a/src/cpu/addressing.h b/src/cpu/addressing.h index 0969025..29fa87c 100644 --- a/src/cpu/addressing.h +++ b/src/cpu/addressing.h @@ -33,6 +33,8 @@ typedef struct AddData{ //Holds address of current instruction. void* current_instruction; +#define getInstructionLength(c) fAddressGetLength(*getInstructionTableAddressing(c)) + int fAddressGetLength(Addressing addr){ switch(addr){ case eAbsolute: case eAbsoluteIndexedX: case eAbsoluteIndexedY: -- cgit v1.2.3