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
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
(20)
Hexinator
(6)
Synalyze It!
(20)
Scripting
(10)
Related questions
What is the best way to add a binary coded decimal (BCD) number to a grammar?
Most popular tags
grammar
scripts
hexinator
python
structure
value
endianness
repeat
numberelement
offset-search
automation
floating-point-numbers
bit-logic
padding
result
string
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
variable-length
elf
masks
magicnumber
derive
mapper
delimited
change
no
getcurrentresults
element
file
length
order
...