BUGFIX: Corrects runaway after drawing in my first schip rom scroll down, left, right all test with test rom assembler now assembles to the expected output it seems fixes incorrect loading of schip font to memory replaces schip font from new chatgpt feedback
8 lines
679 B
Plaintext
8 lines
679 B
Plaintext
WHITESPACE = _{ " " | "\t" } // Allow tabs and multiple spaces
|
|
instruction = { ASCII_ALPHA+ } // Instruction, e.g., "CLS" or "LDX"
|
|
parameter = { ("0x" | "0X") ~ ASCII_HEX_DIGIT+ } // Parameter format, e.g., "0X250"
|
|
comment = { ";" ~ (!"\n" ~ ANY)* } // Capture everything after ";", up to end of line
|
|
parameters = { (parameter ~ (WHITESPACE* ~ ","* ~ WHITESPACE* ~ parameter)*)?} // Zero or more parameters
|
|
record = { instruction ~ WHITESPACE* ~ parameters ~ WHITESPACE* ~ comment? } // Record structure
|
|
file = { SOI ~ (record ~ (("\r\n" | "\n") | WHITESPACE*))* ~ EOI } // Allow for trailing newlines and empty lines
|