s502 assembler
A very simple assembler for the 6502 line of processors written in C
addressmode.h
Go to the documentation of this file.
1 #ifndef GUARD_ADDRESSMODE
2 #define GUARD_ADDRESSMODE
3 
9 enum AddressMode {
12  ADRM_ACC = 0,
13 
16 
19 
22 
25 
28 
31 
34 
37 
40 
43 
46 
49 
52 };
53 
54 extern int ADRM_SIZES[ADRM_COUNT + 1];
55 
56 extern const char* ADRM_NAMES[ADRM_COUNT + 1];
57 
58 #endif
ADRM_ZPG_X
@ ADRM_ZPG_X
Zeropage, X indexed.
Definition: addressmode.h:45
ADRM_SIZES
int ADRM_SIZES[ADRM_COUNT+1]
operand sizes of addressmodes
Definition: addressmode.c:37
ADRM_REL
@ ADRM_REL
Relative (8bit, signed 2's complement)
Definition: addressmode.h:39
ADRM_ZPG
@ ADRM_ZPG
Zeropage.
Definition: addressmode.h:42
AddressMode
AddressMode
Possible address modes of an instruction.
Definition: addressmode.h:10
ADRM_IND_X
@ ADRM_IND_X
Indirect (8 bit), X indexed.
Definition: addressmode.h:33
ADRM_IND
@ ADRM_IND
Indirect (16 bit)
Definition: addressmode.h:30
ADRM_COUNT
@ ADRM_COUNT
Total number of addressing modes.
Definition: addressmode.h:51
ADRM_ZPG_Y
@ ADRM_ZPG_Y
Zeropage, Y indexed.
Definition: addressmode.h:48
ADRM_ACC
@ ADRM_ACC
Accumulator.
Definition: addressmode.h:12
ADRM_NAMES
const char * ADRM_NAMES[ADRM_COUNT+1]
Human-readable names of address modes.
Definition: addressmode.c:16
ADRM_IMM
@ ADRM_IMM
Immidiate.
Definition: addressmode.h:24
ADRM_IND_Y
@ ADRM_IND_Y
Indirect (8 bit), Y indexed.
Definition: addressmode.h:36
ADRM_ABS_Y
@ ADRM_ABS_Y
Absolute, Y indexed.
Definition: addressmode.h:21
ADRM_ABS_X
@ ADRM_ABS_X
Absolute, X indexed.
Definition: addressmode.h:18
ADRM_IMP
@ ADRM_IMP
Implied (no operand)
Definition: addressmode.h:27
ADRM_ABS
@ ADRM_ABS
Absolute addressing.
Definition: addressmode.h:15