Assembly instruction decoder
Fleker opened this issue · 3 comments
Fleker commented
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.
Fleker commented
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
.
Fleker commented
See something like https://riscv.org/wp-content/uploads/2017/05/riscv-spec-v2.2.pdf p121
Fleker commented
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.