blob: 790b9128cbe767b93d3b0d85769a11ac1953b3d3 (
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, 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);
|