MCPcopy Create free account
hub / github.com/capstone-engine/capstone / DecodeBitpOperand

Function DecodeBitpOperand

arch/XCore/XCoreDisassembler.c:174–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174static DecodeStatus DecodeBitpOperand(MCInst *Inst, unsigned Val,
175 uint64_t Address, const void *Decoder)
176{
177 static const unsigned Values[] = {
178 32 /*bpw*/, 1, 2, 3, 4, 5, 6, 7, 8, 16, 24, 32
179 };
180
181 if (Val > 11)
182 return MCDisassembler_Fail;
183
184 MCOperand_CreateImm0(Inst, Values[Val]);
185 return MCDisassembler_Success;
186}
187
188static DecodeStatus DecodeNegImmOperand(MCInst *Inst, unsigned Val,
189 uint64_t Address, const void *Decoder)

Callers 4

DecodeRUSBitpInstructionFunction · 0.85

Calls 1

MCOperand_CreateImm0Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…