diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-11-29 17:38:56 +1100 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-11-29 17:38:56 +1100 |
commit | 44a1ea6542c812b173fb9685837c0b2fdc6a7c61 (patch) | |
tree | 5ca86b97f79c38a07d4c532be6edcc12a887cbc1 /src/cpu/addressing.h | |
parent | 8d3aaacf14997bbac177ae37ccab4618264cf29c (diff) |
bug fix apple.c:9 + inconsequential refactoring
Diffstat (limited to 'src/cpu/addressing.h')
-rw-r--r-- | src/cpu/addressing.h | 12 |
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 |