mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-04-25 17:25:17 +02:00
12 lines
471 B
Plaintext
12 lines
471 B
Plaintext
# Xtensa Deposit Bits instruction
|
|
# This is broken out because it collides with the floating point instructions. It is not included by default
|
|
|
|
# DEPBITS - Add (RRR), pg. 394.
|
|
shiftimm: simm is op2 & op1_0 [ simm = op1_0 << 4 + op2; ] { export *[const]:4 simm; }
|
|
:depbits as, at, shiftimm, u4_12_15 is op1_1_3=0x5 & op_r & as & at & op0 = 0 & shiftimm {
|
|
mask:4 = (1 << op_r) - 1;
|
|
bits:4 = (as & mask) << shiftimm;
|
|
mask = mask << shiftimm;
|
|
at = (~mask & at) | bits;
|
|
}
|