// addressing.h // Contains definitions relevant to addressing, as well as fAddress() which returns time, length, value, and address for an instruction function call. #pragma once #include"core.h" #include"6502.h" #include"instructions.h" #define getInstructionLength(c) fAddressGetLength(*GetInstructionTableAddressing(c)) // 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 ); byte fAddressGetValue (Addressing mode, address x, address addr); int fAddressGetCycles (Addressing mode, address x, address addr);