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

Function DecodeThumbAddrModeIS

arch/ARM/ARMDisassembler.c:3542–3555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3540}
3541
3542static DecodeStatus DecodeThumbAddrModeIS(MCInst *Inst, unsigned Val,
3543 uint64_t Address, const void *Decoder)
3544{
3545 DecodeStatus S = MCDisassembler_Success;
3546 unsigned Rn = fieldFromInstruction_4(Val, 0, 3);
3547 unsigned imm = fieldFromInstruction_4(Val, 3, 5);
3548
3549 if (!Check(&S, DecodetGPRRegisterClass(Inst, Rn, Address, Decoder)))
3550 return MCDisassembler_Fail;
3551
3552 MCOperand_CreateImm0(Inst, imm);
3553
3554 return S;
3555}
3556
3557static DecodeStatus DecodeThumbAddrModePC(MCInst *Inst, unsigned Val,
3558 uint64_t Address, const void *Decoder)

Callers

nothing calls this directly

Calls 3

DecodetGPRRegisterClassFunction · 0.85
MCOperand_CreateImm0Function · 0.85
CheckFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…