Trilangle icon indicating copy to clipboard operation
Trilangle copied to clipboard

Interpret assembly syntax

Open bbrk24 opened this issue 2 years ago • 1 comments

Probably two new flags: -A "interpret assembly", -i "interpolate labels" (for interpreting -Dn output)

bbrk24 avatar Dec 04 '23 14:12 bbrk24

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 -i mode only, labels will follow %zu.%zu formatting, 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.

bbrk24 avatar Dec 04 '23 15:12 bbrk24