v6502
The MOS 6502 Virtual Machine and Toolchain Infrastructure
|
Functions | |
as6502_token * | as6502_desymbolicateExpression (as6502_symbol_table *table, as6502_token *head, uint16_t offset, int caseSensitive) |
Automatically detects symbols in a given line, then dereferences them and replaces them with their actual addresses. More... | |
void | as6502_symbolicateLine (as6502_symbol_table *table, char *line, size_t len, uint16_t offset) |
Searches for addresses in a given line and replaces them with their symbols in a given symbol table. More... | |
as6502_token* as6502_desymbolicateExpression | ( | as6502_symbol_table * | table, |
as6502_token * | head, | ||
uint16_t | offset, | ||
int | caseSensitive | ||
) |
Automatically detects symbols in a given line, then dereferences them and replaces them with their actual addresses.
table | The as6502_symbol_table to search |
head | The as6502_token list to desymbolicate |
offset | Address of current line |
caseSensitive | Symbol search case sensitivity (This argument is currently ignored, and it's always case sensitive) |
FIXME: This needs to be smart about address formation, based on address mode This is absurdly inefficient, but works, given the current symbol table implementation
void as6502_symbolicateLine | ( | as6502_symbol_table * | table, |
char * | line, | ||
size_t | len, | ||
uint16_t | offset | ||
) |
Searches for addresses in a given line and replaces them with their symbols in a given symbol table.
table | The as6502_symbol_table to search |
line | The string to desymbolicate |
len | Useable length of the line in chars |
offset | Address of current line |