v6502
The MOS 6502 Virtual Machine and Toolchain Infrastructure
|
Macros | |
#define | as6502_valueForToken(wide, token) as6502_valueForString(wide, token->text, token->len) |
Returns the numeric value of a literal token regardless of base. | |
Functions | |
uint16_t | as6502_valueForString (int *wide, const char *string, size_t len) |
Returns the numeric value of a literal regardless of base. | |
void | as6502_byteValuesForString (uint8_t *high, uint8_t *low, int *wide, const char *string, size_t len) |
Determines the numeric value of a literal separated into its high and low bytes. | |
void | as6502_instructionForExpression (uint8_t *opcode, uint8_t *low, uint8_t *high, v6502_address_mode *mode, as6502_token *head) |
Completely parses a line of text to extract the instruction and v6502_address_mode. | |
void | as6502_executeAsmLineOnCPU (v6502_cpu *cpu, const char *line, size_t len) |
Executes a symbol-free line of assembly on a specified v6502_cpu. | |
int | as6502_instructionLengthForAddressMode (v6502_address_mode mode) |
Returns the byte-length of a given v6502_address_mode. More... | |
int as6502_instructionLengthForAddressMode | ( | v6502_address_mode | mode | ) |
Returns the byte-length of a given v6502_address_mode.
Returns the instruction length for a given v6502_address_mode.