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

Function B_cond

arch/arm64/disassembler/decode2.c:1814–1826  ·  view source on GitHub ↗

b_cond.xml */

Source from the content-addressed store, hash-verified

1812
1813/* b_cond.xml */
1814int B_cond(context *ctx, Instruction *instr)
1815{
1816 int rc = DECODE_STATUS_UNMATCHED;
1817 /* class iclass_br19 */
1818 /* 0101010|o1=0|imm19=xxxxxxxxxxxxxxxxxxx|o0=0|cond=xxxx */
1819 if((INSWORD & 0xFF000010)==0x54000000) {
1820 decode_fields32(ENC_B_ONLY_CONDBRANCH, ctx, instr);
1821 ctx->offset = SignExtend((ctx->imm19<<2),21);
1822 ctx->condition = ctx->cond;
1823 OK(ENC_B_ONLY_CONDBRANCH);
1824 }
1825 return rc;
1826}
1827
1828/* b_uncond.xml */
1829int B_uncond(context *ctx, Instruction *instr)

Callers 1

decode_iclass_condbranchFunction · 0.85

Calls 2

decode_fields32Function · 0.85
SignExtendFunction · 0.85

Tested by

no test coverage detected