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

Fix encoding of IN instruction with bit_count == 32 w/ tests #60

Closed
wants to merge 4 commits into from

Conversation

9names
Copy link
Member

@9names 9names commented May 28, 2024

Replaces #58
Fixes #57

@9names 9names force-pushed the issue-57-extended branch from 9ce5b81 to de8fecf Compare May 28, 2024 03:52
@9names
Copy link
Member Author

9names commented May 28, 2024

I did try to add a panic on bit_count == 0, but it breaks existing tests.

@jannic
Copy link
Member

jannic commented May 28, 2024

I did try to add a panic on bit_count == 0, but it breaks existing tests.

That actually pointed to another bug in the handling of bit_count: The instruction decoder took a value of 0 literally, instead of interpreting it as 32.
I fixed that in #58 and added the panic for bit_count == 0.

@9names
Copy link
Member Author

9names commented May 28, 2024

Thanks, glad you worked it out (I'll have to read your fix). I'll close this PR since you've got it covered

@9names 9names closed this May 28, 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.

Encoding of IN with bit_count = 32 is incorrect
2 participants