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

Support compact instructions #37

Open
adumont opened this issue Aug 27, 2019 · 0 comments
Open

Support compact instructions #37

adumont opened this issue Aug 27, 2019 · 0 comments
Labels
enhancement New feature or request FSM

Comments

@adumont
Copy link
Owner

adumont commented Aug 27, 2019

For memory instructions, use the two unused bits to encode 3 values of the operand, so the instructions can be written in only 1 byte (instead of two that it should normally be)

For example COPYTO 0 (or 1 or 2) would fit in only 1 byte, encoding the operand (0, 1, or 2) in the two unused bits of the opcode.

That involves changes in the FSM (faster as we bypass the steps of reading the Operand).

Also involves changes in the assembler obviously.

IMG_20190827_185619

@adumont adumont added enhancement New feature or request FSM labels Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request FSM
Projects
None yet
Development

No branches or pull requests

1 participant