Trilangle
Trilangle copied to clipboard
Interpret assembly syntax
Probably two new flags: -A "interpret assembly", -i "interpolate labels" (for interpreting -Dn output)
Tagging this with "help wanted" because my laptop is out of commission at the moment. Some useful information for whoever implements this:
- A comment starts with
;and ends at EOL - A label starts with the first character in a line and ends at
:or whitespace (tab, space, or line feed at minimum) - For
-imode only, labels will follow%zu.%zuformatting, ordered like semver: 1.1 < 1.2 < 1.10 < 2.0. - For instructions with operands like PSI and JMP, any amount of space between the instruction and its operand is allowed, but they must be on the same line.