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.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/cpu/addressing.h b/src/cpu/addressing.h
index 5fea2fb..e2c882e 100644
--- a/src/cpu/addressing.h
+++ b/src/cpu/addressing.h
@@ -1,21 +1,19 @@
// addressing.h
// Contains definitions relevant to addressing, as well as fAddress() which returns time, length, value, and address for an instruction function call.
-#ifndef ADDRESSING_H
-#define ADDRESSING_H
+#pragma once
#include"core.h"
#include"6502.h"
#include"instructions.h"
-#define getInstructionLength(c) fAddressGetLength(*getInstructionTableAddressing(c))
+#define getInstructionLength(c) fAddressGetLength(*GetInstructionTableAddressing(c))
+// For a given addressing mode and opcode, return data about the instruction.
+AddData fAddress (Addressing mode, short x );
address fAddressGetAddress (Addressing mode, short x );
int fAddressGetLength (Addressing mode );
byte fAddressGetValue (Addressing mode, short x, address addr);
-int fAddressGetCycles (Addressing mode, short x, address addr);
-AddData fAddress (Addressing mode, short x);
-
-#endif \ No newline at end of file
+int fAddressGetCycles (Addressing mode, short x, address addr); \ No newline at end of file