Skip to content

Fix CBRANCH emulator condition evaluation - #244

Merged
mnemonikr merged 1 commit into
mainfrom
cbranch-fix
Jun 5, 2026
Merged

Fix CBRANCH emulator condition evaluation#244
mnemonikr merged 1 commit into
mainfrom
cbranch-fix

Conversation

@mnemonikr

Copy link
Copy Markdown
Owner

The emulator was attempting to extract a single bit for the condition evaluation. However, the documentation for CBRANCH says this the condition should evaluate to true if the condition byte is non-zero.

Resolves #241

@mnemonikr mnemonikr self-assigned this Jun 5, 2026
@mnemonikr
mnemonikr merged commit 4915f29 into main Jun 5, 2026
2 checks passed
@mnemonikr
mnemonikr deleted the cbranch-fix branch June 5, 2026 03:12
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.

Conditional branch in emulator is incorrect

1 participant