v6502
The MOS 6502 Virtual Machine and Toolchain Infrastructure
Functions
Instruction Transliteration

Functions

v6502_opcode as6502_opcodeForInstructionAndMode (as6502_token *instruction, v6502_address_mode mode)
 Returns the v6502_opcode for a given instruction string at a specified v6502_address_mode.
 
v6502_address_mode as6502_addressModeForExpression (as6502_token *head)
 Returns the v6502_address_mode for a given (already lexed) expression by analyzing the operands.
 
int as6502_instructionLengthForAddressMode (v6502_address_mode mode)
 Returns the instruction length for a given v6502_address_mode. More...
 
void as6502_stringForAddressMode (char *out, v6502_address_mode mode)
 Returns the string representation of an v6502_address_mode.
 

Detailed Description

Function Documentation

◆ as6502_instructionLengthForAddressMode()

int as6502_instructionLengthForAddressMode ( v6502_address_mode  mode)

Returns the instruction length for a given v6502_address_mode.

Returns the byte-length of a given v6502_address_mode.

Returns the instruction length for a given v6502_address_mode.