blob: e2c882ef544d396ed7e331f0c119717412a2c14a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// 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, 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);
|