// 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" // For a given addressing mode and opcode, return data about the instruction. 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);