summaryrefslogtreecommitdiff
path: root/src/cpu/addressing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/addressing.h')
-rw-r--r--src/cpu/addressing.h2
1 files changed, 2 insertions, 0 deletions
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: