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

Function SBC

arch/arm64/disassembler/decode2.c:20262–20282  ·  view source on GitHub ↗

sbc.xml */

Source from the content-addressed store, hash-verified

20260
20261/* sbc.xml */
20262int SBC(context *ctx, Instruction *instr)
20263{
20264 int rc = DECODE_STATUS_UNMATCHED;
20265 /* class iclass_no_s */
20266 /* sf=x|op=1|S=0|11010000|Rm=xxxxx|000000|Rn=xxxxx|Rd=xxxxx */
20267 if((INSWORD & 0x7FE0FC00)==0x5A000000) {
20268 decode_fields32(ENC_SBC_32_ADDSUB_CARRY, ctx, instr);
20269 ctx->d = UINT(ctx->Rd);
20270 ctx->n = UINT(ctx->Rn);
20271 ctx->m = UINT(ctx->Rm);
20272 ctx->datasize = (ctx->sf==1) ? 0x40 : 0x20;
20273 ctx->sub_op = (ctx->op==1);
20274 ctx->setflags = (ctx->S==1);
20275 instr->setflags = (ctx->S==1) ? FLAGEFFECT_SETS : FLAGEFFECT_NONE;
20276 /* regular aliases */
20277 if(ctx->Rn==0x1f) return NGC_SBC(ctx, instr);
20278 if(ctx->sf==0) OK(ENC_SBC_32_ADDSUB_CARRY);
20279 if(ctx->sf==1) OK(ENC_SBC_64_ADDSUB_CARRY);
20280 }
20281 return rc;
20282}
20283
20284/* sbcs.xml */
20285int SBCS(context *ctx, Instruction *instr)

Callers 1

Calls 2

decode_fields32Function · 0.85
NGC_SBCFunction · 0.85

Tested by

no test coverage detected