Mask off bits in displayed value #2568
Answered
by
XJDHDR
XJDHDR
asked this question in
Pattern Language Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
XJDHDR
Dec 16, 2025
Replies: 3 comments 9 replies
-
|
that should work as it stands. the problem may be when the first bit is zero. |
Beta Was this translation helpful? Give feedback.
5 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
XJDHDR
-
|
On a side note, I've finished creating my pattern and would like to contribute it to ImHex as a built-in pattern. I can't figure out where to add it in this repo or where in the repo the patterns that ImHex already comes with are stored. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Edit: My pattern now uses the following and works as it should:
Original comment:
I changed my pattern to this now and it's seems to give me what I need:
The only question I have now is whether it's possible to get rid of the local variable and have that bitwise AND applied directly to
R…