s502 assembler
A very simple assembler for the 6502 line of processors written in C
|
step 1 and 3 processing for directive tokens More...
Go to the source code of this file.
Enumerations | |
enum | DIRCommand { DIR_STOP = -1, DIR_NOP = 0, DIR_IF_TRUE, DIR_IF_FALSE, DIR_ENDIF } |
Internal command type for directives. More... | |
Functions | |
enum DIRCommand | do_directive_token (State *s, TokensListElement *ptr, int skip) |
process a directive token More... | |
int | directive_compile (State *s, Token *t, char **dataptr) |
Compile a directive into binary data. More... | |
step 1 and 3 processing for directive tokens
Public interface for directive.h
Definition in file directive.h.
enum DIRCommand |
Internal command type for directives.
Token processor functions return these to signal different commands to pass one
Definition at line 19 of file directive.h.
Compile a directive into binary data.
dataptr | return buffer for data |
s | assembler state |
t | token to compile |
Simply relays it to compile_pad or compile_data
Definition at line 498 of file directive.c.
References compile_data(), compile_pad(), Token::stripped, and util_match_string().
Referenced by token_compile().
enum DIRCommand do_directive_token | ( | State * | s, |
TokensListElement * | ptr, | ||
int | skip | ||
) |
process a directive token
s | state of the compiler |
ptr | ptr to the current token in the list |
skip | disable compilation flag (1=disabled) |
Identifies directive type, and runs a processor function on it.
Definition at line 1 of file directive.c.
Referenced by pass_one().