Fleker/chipyard-viewer

Assembly instruction decoder

Fleker opened this issue · 3 comments

Have a mapping from the assembly op to the canonical instruction.

addi ...

Should be mapped to some kind of content like:

Add Immediate: This instruction is used to do X, Y, or Z.

Probably some sort of JSON object that has a mapping of addi to a title and description. Handle a case when the instruction is unknown. That will allow for things to be added over time.

eg.

{
    "addi": {
        "title": "Add Immediate",
        "description": "Adds immediate."
    }
}

Have support for pasting args in the description $1, $2 => $0.

This is largely done. There can certainly be additional commands which may be added later, but that can be for another issue. The foundation is laid.