All functions |
|
---|---|
Regex patterns for parsing 6502 assembly |
|
Compile ASM to a c64 exectuable (in PRG format) |
|
Split each ASM line into tokens |
|
Create the main compiler datastructure 'prg_df' from a list of `line_tokens` |
|
Determine the opcode, address mode etc for a sequence of tokens representing a single instruction |
|
Extract the raw bytes for the assembled PRG |
|
Determine the opcode, address mode etc for a sequence of tokens representing a single instruction |
|
Hex (character strings) to integer values |
|
Fetch the high byte of a 16bit address |
|
Fetch the low byte of a 16bit address |
|
Reference list of opcode information |
|
Process any cross-referenced symbols to insert actual addresse/values |
|
Pad out with zero bytes between address blocks |
|
String to ASM for ".text" code |
|
Save the PRG to file |
|
Convert a 16bit address to 2 bytes (lo_byte, hi_byte) as is the 6502 way |