s502 assembler
A very simple assembler for the 6502 line of processors written in C
Variables
addressmode.c File Reference

constant data related to AddressMode More...

#include "addressmode.h"

Go to the source code of this file.

Variables

const char * ADRM_NAMES []
 Human-readable names of address modes. More...
 
int ADRM_SIZES [ADRM_COUNT+1]
 operand sizes of addressmodes More...
 

Detailed Description

constant data related to AddressMode

Textual names and binary sizes of operands

Definition in file addressmode.c.

Variable Documentation

◆ ADRM_NAMES

const char* ADRM_NAMES[]
Initial value:
= {
"Accumulator",
"Absolute",
"Absolute, X",
"Absolute, Y",
"Immidiate",
"Implied",
"Indirect",
"Indirect, X",
"Indirect, Y",
"Relative",
"Zeropage",
"Zeropage, X",
"Zeropage, Y",
"ERROR! OVERINDEX!",
}

Human-readable names of address modes.

Can be used to pretty print if indexed by enum value

Definition at line 16 of file addressmode.c.

Referenced by instruction_print(), pass_one(), and token_analyze_instruction().

◆ ADRM_SIZES

int ADRM_SIZES[ADRM_COUNT+1]
Initial value:
= {
0,
2,
2,
2,
1,
0,
2,
1,
1,
1,
1,
1,
1,
-1,
}

operand sizes of addressmodes

Definition at line 37 of file addressmode.c.

Referenced by token_analyze_instruction().