summaryrefslogtreecommitdiff
path: root/src/cpu/addressing.c
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-08-05 05:32:54 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-08-05 05:32:54 +1000
commita11980fe90fe62588fdf8103d9ef418283b3fd27 (patch)
tree954d2e327ff5190c8cdcdd977d9a73438ed62ca3 /src/cpu/addressing.c
parentb8599585fad704b2ec3bdde69dca4dd9c2a6f8fd (diff)
major refactor; doesn't compile (see ToDo)
Diffstat (limited to 'src/cpu/addressing.c')
-rw-r--r--src/cpu/addressing.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpu/addressing.c b/src/cpu/addressing.c
index 6e7d950..9a1694d 100644
--- a/src/cpu/addressing.c
+++ b/src/cpu/addressing.c
@@ -1,10 +1,9 @@
// addressing.h
// Contains definitions relevant to addressing, as well as fAddress() which returns time, length, value, and address for an instruction function call.
+// Would like to refactor the code into something better, such as switch-case statements for the cycles calculation.
#include"addressing.h"
-#define getInstructionLength(c) fAddressGetLength(*getInstructionTableAddressing(c))
-
int fAddressGetLength(Addressing addr){
switch(addr){
case eAbsolute: case eAbsoluteIndexedX: case eAbsoluteIndexedY: