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

Function CBZ

arch/arm64/disassembler/decode2.c:1984–1999  ·  view source on GitHub ↗

cbz.xml */

Source from the content-addressed store, hash-verified

1982
1983/* cbz.xml */
1984int CBZ(context *ctx, Instruction *instr)
1985{
1986 int rc = DECODE_STATUS_UNMATCHED;
1987 /* class iclass_br19 */
1988 /* sf=x|011010|op=0|imm19=xxxxxxxxxxxxxxxxxxx|Rt=xxxxx */
1989 if((INSWORD & 0x7F000000)==0x34000000) {
1990 decode_fields32(ENC_CBZ_32_COMPBRANCH, ctx, instr);
1991 ctx->t = UINT(ctx->Rt);
1992 ctx->datasize = (ctx->sf==1) ? 0x40 : 0x20;
1993 ctx->iszero = (ctx->op==0);
1994 ctx->offset = SignExtend((ctx->imm19<<2),21);
1995 if(ctx->sf==0) OK(ENC_CBZ_32_COMPBRANCH);
1996 if(ctx->sf==1) OK(ENC_CBZ_64_COMPBRANCH);
1997 }
1998 return rc;
1999}
2000
2001/* ccmn_imm.xml */
2002int CCMN_imm(context *ctx, Instruction *instr)

Callers 1

decode_iclass_compbranchFunction · 0.85

Calls 2

decode_fields32Function · 0.85
SignExtendFunction · 0.85

Tested by

no test coverage detected