Login
Login
Register
Questions
Unanswered
Tags
Users
Ask a Question
Ask a Question
Add mask via bitshift?
0
votes
asked
May 31, 2020
by
alexpineda
(
120
points)
I'd like to use the Number type and something like in the Value field: "this.value >> 4"
I don't see an option for bit shifting in masks either.
Please
log in
or
register
to answer this question.
1 Answer
0
votes
answered
Feb 17, 2023
by
guruadmin
(
680
points)
I'd suggest to do it with division. In case your number element is named BigNumber, set the Value field to
BigNumber / 16
Please
log in
or
register
to add a comment.
Welcome to Synalysis Q&A, where you can ask questions and receive answers from other members of the community.
All categories
Grammars
(21)
Hexinator
(8)
Synalyze It!
(21)
Scripting
(12)
Related questions
Add a new checksum?
What is the best way to add a binary coded decimal (BCD) number to a grammar?
Most popular tags
grammar
hexinator
scripts
python
structure
value
endianness
repeat
numberelement
offset-search
automation
floating-point-numbers
variable-length
bit-logic
padding
result
string
object-file
omf-51
font
consists-of
meter-bus
m-bus
cpap
conditional
date
dates
dump
nokia
decode
bug
bin
decrypt
openssl
wav-files
corrupted
audio
csv
lengthunit
structuremapper
headers
signature
pattern
aob
diff
export
hex-editing
installer
elf
masks
magicnumber
derive
mapper
delimited
change
no
getcurrentresults
element
file
length
order
...