summaryrefslogtreecommitdiff
path: root/src/cpu/addressing.h
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-12-08 06:52:14 +1100
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-12-08 06:52:14 +1100
commitd28ad56810b43cb3ea5d11e5e32042f69ee04562 (patch)
tree0d0fd8976b253bf6aafed6e1449a1d4e69f658ab /src/cpu/addressing.h
parent5012497d6e59d787195d177d02faa55242bf7e40 (diff)
major refactor of cpu code
Diffstat (limited to 'src/cpu/addressing.h')
-rw-r--r--src/cpu/addressing.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/cpu/addressing.h b/src/cpu/addressing.h
index 790b912..d8f12a3 100644
--- a/src/cpu/addressing.h
+++ b/src/cpu/addressing.h
@@ -3,17 +3,12 @@
#pragma once
-#include"core.h"
-#include"6502.h"
-#include"instructions.h"
-
-
-#define getInstructionLength(c) fAddressGetLength(*GetInstructionTableAddressing(c))
-
+#include "core.h"
+#include "6502.h"
+#include "instructions.h"
// For a given addressing mode and opcode, return data about the instruction.
-AddData fAddress (Addressing mode, address x );
-address fAddressGetAddress (Addressing mode, address x );
-int fAddressGetLength (Addressing mode );
+struct State fAddress (Addressing mode, address x);
+address fAddressGetAddress (Addressing mode, address x);
+int fAddressGetLength (Addressing mode);
byte fAddressGetValue (Addressing mode, address x, address addr);
-int fAddressGetCycles (Addressing mode, address x, address addr);