Repository navigation
Fix HCS12X instruction decodings and add missing registers - #3176
Merged
Merged
Conversation
Contributor
Author
|
@historicattle If you don't mind please check if this is compliant with your use. |
Contributor
|
Hi, I added hcs12x support only because it was missing from capstone. Ill take a look at the changes, thanks :) |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #3176 +/- ##
=======================================
Coverage ? 61.87%
=======================================
Files ? 243
Lines ? 56934
Branches ? 10133
=======================================
Hits ? 35228
Misses ? 16500
Partials ? 5206 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Rot127
requested changes
Nov 24, 2026
Signed-off-by: Joel Linn <j.linn@ecom.de>
- Allows full decoding of TXR and EXG for HCS12X. Signed-off-by: Joel Linn <j.linn@ecom.de>
Collaborator
|
@historicattle Do you still want to take a look? |
Contributor
|
Yes, ill have a look at it right now |
Rot127
approved these changes
Nov 26, 2026
Rot127
left a comment
Collaborator
There was a problem hiding this comment.
Thanks!
Especially for getting all the contributions requirements right from the beginning :) Appreciate it!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Your checklist for this pull request
I think the added registers might fall under this?
Sequences are taken from
Assembler for HC12 V-5.0.32 Build 15249, Sep 7 2015output with-CPUHCS12XEflag.Detailed description
This also adds cpu internal TMP registers but some are already present so I figured it should be fine.
Note on TMP1: while this exists in CPU12, I think it is unreachable. Only HCS12X added TFR/EXG encodings can reach it. Therefore it is commented as HCS12X.
Test plan
Added tests for new and fixed instructions. Most test changes are HCS12X specific.
Closing issues