summaryrefslogtreecommitdiff
path: root/src/cpu/addressing.h
blob: d8f12a3200098181bb533793286e3e9c1d002624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//	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);