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

Function B_uncond

arch/arm64/disassembler/decode2.c:1829–1841  ·  view source on GitHub ↗

b_uncond.xml */

Source from the content-addressed store, hash-verified

1827
1828/* b_uncond.xml */
1829int B_uncond(context *ctx, Instruction *instr)
1830{
1831 int rc = DECODE_STATUS_UNMATCHED;
1832 /* class iclass_br26 */
1833 /* op=0|00101|imm26=xxxxxxxxxxxxxxxxxxxxxxxxxx */
1834 if((INSWORD & 0xFC000000)==0x14000000) {
1835 decode_fields32(ENC_B_ONLY_BRANCH_IMM, ctx, instr);
1836 ctx->branch_type = (ctx->op==1) ? BranchType_DIRCALL : BranchType_DIR;
1837 ctx->offset = SignExtend((ctx->imm26<<2),28);
1838 OK(ENC_B_ONLY_BRANCH_IMM);
1839 }
1840 return rc;
1841}
1842
1843/* cas.xml */
1844int CAS(context *ctx, Instruction *instr)

Callers 1

decode_iclass_branch_immFunction · 0.85

Calls 2

decode_fields32Function · 0.85
SignExtendFunction · 0.85

Tested by

no test coverage detected