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

Debugger Assembler: BC1(t|f) 24 bit immediates to 16 bit immediates #12337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

F0bes
Copy link
Member

@F0bes F0bes commented Feb 21, 2025

Description of Changes

Fixes an invalid opcode form in the assembler table.
Also added an error message to an expression parser failure condition.

Rationale behind Changes

This made assembling bc1f/bc1t bc1fl/bc1tl not possible as the immediate was clobbering the bits outside of the offset field.

The error message fixes a case where entering multiple constants failed, but didn't say why.

Suggested Testing Steps

Try assembling the previously mentioned opcodes. The assembler uses absolute addressing (and internally converts it to be relative). Try assembling the maximum offset possible and beyond, make sure that there is no off-by-one errors.

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

Successfully merging this pull request may close these issues.

1 participant