s502 assembler
A very simple assembler for the 6502 line of processors written in C
|
Go to the documentation of this file. 1 #ifndef GUARD_DIRECTIVE
2 #define GUARD_DIRECTIVE
@ DIR_STOP
An error occured, stop compilation.
@ DIR_NOP
Nothing special, do nothing.
Compiler pseudo-global state.
enum DIRCommand do_directive_token(State *s, TokensListElement *ptr, int skip)
process a directive token
@ DIR_ENDIF
An endif was encountered, should pop from state stack.
Token type to store token information.
An element of a TokensList.
DIRCommand
Internal command type for directives.
@ DIR_IF_FALSE
A conditional evaluated to false.
@ DIR_IF_TRUE
A conditional evaluated to true.
int directive_compile(State *s, Token *t, char **dataptr)
Compile a directive into binary data.