Skip to content

Implement DAA (and associated BCD flags)#8

Closed
samrussell wants to merge 7 commits into
Vector35:masterfrom
samrussell:implement_daa
Closed

Implement DAA (and associated BCD flags)#8
samrussell wants to merge 7 commits into
Vector35:masterfrom
samrussell:implement_daa

Conversation

@samrussell

Copy link
Copy Markdown
Contributor

This was fun, I'm not super concerned about flag output (except Z and C), it looks kinda nice in IL:

image

Looks a bit wild with the full flag calculation in the HLIL though:

image

image

image

Note that I've manually implemented the half-carry and it seems to resolve to the same as the default for carry implementation in the HLIL

@samrussell

Copy link
Copy Markdown
Contributor Author

Looks like the HLIL optimises out the constant n flag too, here's a BCD subtraction (above is addition):

image

image

image

@samrussell

Copy link
Copy Markdown
Contributor Author

Note: this is based on the branch that #3 is from so the tip of this can be merged or maybe look at #3 first before this one

@samrussell

Copy link
Copy Markdown
Contributor Author

Closed in favour of #10

@samrussell samrussell closed this Mar 2, 2024
mblsha added a commit to mblsha/Z80 that referenced this pull request Aug 26, 2025
- Add header comment explaining this is temporary until PR Vector35#8 is merged
- Link to upstream PR: mblsha/binja-test-mocks#8
- Add TODO in pyproject.toml to update binja-test-mocks version
- Once upstream fix is released, sitecustomize.py can be deleted

The proper fixes have been contributed upstream to binja-test-mocks
and will eliminate the need for runtime patching.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant