summaryrefslogtreecommitdiff
path: root/src/cpu/addressing.h
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-05-08 09:49:43 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-05-08 09:49:43 +1000
commitc1d5bf8ab7648418fa7120ea4868205f3cf7e857 (patch)
tree1ec819cd36dbf4793e62f375eb4a98f3c60f2b26 /src/cpu/addressing.h
parent093e29e4544f16f7058b6e8cf824ef789f864410 (diff)
instructions done, plus minor changes
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: