Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpret assembly syntax #46

Open
bbrk24 opened this issue Dec 4, 2023 · 1 comment
Open

Interpret assembly syntax #46

bbrk24 opened this issue Dec 4, 2023 · 1 comment
Labels
meta:help wanted Extra attention is needed semver-minor Adding a new feature, or formalizing UB type:enhancement New feature or request

Comments

@bbrk24
Copy link
Owner

bbrk24 commented Dec 4, 2023

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

@bbrk24 bbrk24 added semver-minor Adding a new feature, or formalizing UB type:enhancement New feature or request labels Dec 4, 2023
@bbrk24
Copy link
Owner Author

bbrk24 commented Dec 4, 2023

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 bbrk24 added the meta:help wanted Extra attention is needed label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta:help wanted Extra attention is needed semver-minor Adding a new feature, or formalizing UB type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant