s502 assembler
A very simple assembler for the 6502 line of processors written in C
|
Map * labels
label locations
Instruction * instr
instruction data
TokensList * tokens
tokens
Compiler pseudo-global state.
int state_load_instr(State *s, char *fname)
load instructions from a file
Map * defines
defined constants
State * state_new()
Create a new State object.
void state_free(State *s)
free a State object and all associated memory
Simple key->value map (str->int)
linked list member holding instruction data
A doubly-linked list for storing Tokens.
Instruction data and related operations.
int state_parse_commandline(State *s, int argc, char **argv)
parse command line arguments and update state
@ STATE_MAX_STRING_LEN
max string length for input/output files