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

Refactor JLT to JCP (Jump ComPare) #43

Closed
francisrstokes opened this issue Aug 3, 2017 · 1 comment
Closed

Refactor JLT to JCP (Jump ComPare) #43

francisrstokes opened this issue Aug 3, 2017 · 1 comment

Comments

@francisrstokes
Copy link
Owner

JCP R1, R2, R3, Op

R1 is compared against R2, and the jump address is stored in R3. Operation will be in the list:

-Equal
-Not equal
-Less than
-Greater than
-Less than or equal
-Greater than or equal
-Zero (in which case R2 is ignored)
-Not zero (in which case R2 is ignored)

Create pseudo instructions for all the operations:

  • JEQ
  • JNE
  • JLT
  • JGT
  • JLE
  • JGE
  • JZE
  • JNZ
@francisrstokes
Copy link
Owner Author

Addressed in #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant