Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Refactor instruction formats (make way for more Format A instructions) #146

Open
mbitsnbites opened this issue May 5, 2023 · 0 comments
Milestone

Comments

@mbitsnbites
Copy link
Member

mbitsnbites commented May 5, 2023

The number of Format A instructions is relatively limited. We could make the following changes to the encodings:

  • Format A+B: Bits 26-31 = 000000..000011, instead of just 000000 (i.e. quadruple the number of Format A & B instructions).
  • Move Load/Store instructions to make room for the above change (there's still room in the 4-15 opcode range, both for Format A & C).

Furthermore:

  • Consider removing some/all of the MUL/DIV/REM instructions from Format C to make room for more Format C instructions. The value of these instructions is very limited.
@mbitsnbites mbitsnbites added this to the v0.4 milestone May 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant