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

Implemented RLC and RRC instructions #28

Merged
merged 4 commits into from
Mar 10, 2024
Merged

Implemented RLC and RRC instructions #28

merged 4 commits into from
Mar 10, 2024

Conversation

ddpigeon
Copy link
Collaborator

@ddpigeon ddpigeon commented Feb 8, 2024

as the title suggests

@ddpigeon ddpigeon linked an issue Feb 8, 2024 that may be closed by this pull request

set_flag(Flags::neg, 0);
set_flag(Flags::half_carry, 0);
if (*pfx_register_ptr == 0) set_flag(Flags::zero, 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Else set the flag to 0. Better to put the boolian condition inside set_flag


set_flag(Flags::neg, 0);
set_flag(Flags::half_carry, 0);
if (*pfx_register_ptr == 0) set_flag(Flags::zero, 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not pfx_register_ptr but operand! pfx_register_ptr is nullptr since its (HL). The same bug is in RRC_HL

@ddpigeon
Copy link
Collaborator Author

ddpigeon commented Mar 9, 2024

should be fixed now

@Vignaraj-pai Vignaraj-pai changed the base branch from main to dev March 10, 2024 20:32
@Vignaraj-pai Vignaraj-pai merged commit 738124e into dev Mar 10, 2024
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

Successfully merging this pull request may close these issues.

Implement the prefix RLC & RRC instructions
3 participants