s502 assembler
A very simple assembler for the 6502 line of processors written in C
|
Compiler pseudo-global state.
int token_analyze_instruction(State *s, Token *t)
analyze instruction token (instruction, addressmode & operand)
Token type to store token information.
void token_print(Token *token)
Pretty-print one token, with its source and length.
Instruction data and related operations.
int token_recognize(Token *t)
Parse token - test if it's an opcode, a label or a directive.
int token_compile(State *s, Token *t, char **dataptr)
compile token into binary data
int token_get_operand(State *s, Token *t)
parse the operand of the instruction as a number