s502 assembler
A very simple assembler for the 6502 line of processors written in C
|
processing steps 2 and 3 More...
#include "state.h"
Go to the source code of this file.
Functions | |
int | pass_two (State *s) |
compilation pass 2 More... | |
int | write_data (State *s) |
compilation pass 3 More... | |
int pass_two | ( | State * | s | ) |
compilation pass 2
s | current state |
Simply subtitutes remaining operand values (forward labels).
Definition at line 19 of file pass_twothree.c.
References ERROR, FAIL, TokensList::head, TokensListElement::next, Token::token_get_operand(), Token::token_print(), State::tokens, and TT_INSTR.
Referenced by main().
int write_data | ( | State * | s | ) |
compilation pass 3
s | current state |
Writes binary data to file
Definition at line 69 of file pass_twothree.c.
References concat_bin(), ERROR, FAIL, and State::outfile.
Referenced by main().