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

Add conditional goto #96

Merged
merged 9 commits into from
Feb 23, 2024
Merged

Add conditional goto #96

merged 9 commits into from
Feb 23, 2024

Conversation

MaximeAlgosup
Copy link
Collaborator

Project version: 1.1.0
Assembler version: 1.1.0
Virtual processor version: 1.1.0

Description:
Add conditional goto

New features:

  • Possibility to do a comparison before goto and allow or not goto

Remove else, end operation from the various files to transform if/else statement into conditional jump
For all if_ interrupt change building and add a check to confirm that the next instruction is a goto
- Add conditional goto actions, to the virtual processor
- Remove unnecessary comparisons (or, and, xor)
Remove tests for:
- if_or
- if_and
- if_xor
Because the 3 functions have been removed.
Correct errors in tests file
@MaximeAlgosup MaximeAlgosup added enhancement New feature or request Code Add code labels Feb 23, 2024
@MaximeAlgosup MaximeAlgosup self-assigned this Feb 23, 2024
Copy link
Collaborator

@EnzoGuillouche EnzoGuillouche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes are ready to be on the main branch. Merging approved.

Copy link
Collaborator

@Guillaume18100 Guillaume18100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@MaximeAlgosup MaximeAlgosup merged commit a13270c into main Feb 23, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Add code enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants