MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / DecodeRegExtend

Function DecodeRegExtend

arch/arm64/disassembler/pcode.c:155–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155enum ShiftType DecodeRegExtend(uint8_t op)
156{
157 switch (op & 7)
158 {
159 case 0b000:
160 return ShiftType_UXTB;
161 case 0b001:
162 return ShiftType_UXTH;
163 case 0b010:
164 return ShiftType_UXTW;
165 case 0b011:
166 return ShiftType_UXTX;
167 case 0b100:
168 return ShiftType_SXTB;
169 case 0b101:
170 return ShiftType_SXTH;
171 case 0b110:
172 return ShiftType_SXTW;
173 case 0b111:
174 return ShiftType_SXTX;
175 default:
176 return ShiftType_NONE;
177 }
178}
179
180enum ShiftType DecodeShift(uint8_t op)
181{

Callers 15

ADDS_addsub_extFunction · 0.85
ADD_addsub_extFunction · 0.85
LDRB_regFunction · 0.85
LDRH_regFunction · 0.85
LDRSB_regFunction · 0.85
LDRSH_regFunction · 0.85
LDRSW_regFunction · 0.85
LDR_reg_fpsimdFunction · 0.85
LDR_reg_genFunction · 0.85
PRFM_regFunction · 0.85
STRB_regFunction · 0.85
STRH_regFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected