Skip to content

Opcode mnemonics for SubX #39

@akkartik

Description

@akkartik

Giving mnemonics to x86 opcodes might make SubX easier for newcomers to read. This issue is intended to track the pros and cons.

Previous discussion: https://news.ycombinator.com/item?id=21268252#21293301

Initial list of pros and cons:

  • Pro: names give some indication (albeit imprecise) of the operation being performed.
  • Pro: names can be checked by tooling. Typoing 8d for 8f seems easier than typoing copy for pop.
  • Con: per-opcode mnemonics are an additional set of things for the new reader to understand and navigate. And cross-correlate with the Intel manual, since it only gives names to sets of opcodes.
  • Con: tooling may have a hard time giving a good error message when a user typos one variant of say add for another.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposals solicitedThis design hasn't been fleshed out; there's lots of scope to come in and make a new proposal.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions