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

Function SBCS

arch/arm64/disassembler/decode2.c:20285–20305  ·  view source on GitHub ↗

sbcs.xml */

Source from the content-addressed store, hash-verified

20283
20284/* sbcs.xml */
20285int SBCS(context *ctx, Instruction *instr)
20286{
20287 int rc = DECODE_STATUS_UNMATCHED;
20288 /* class iclass_s */
20289 /* sf=x|op=1|S=1|11010000|Rm=xxxxx|000000|Rn=xxxxx|Rd=xxxxx */
20290 if((INSWORD & 0x7FE0FC00)==0x7A000000) {
20291 decode_fields32(ENC_SBCS_32_ADDSUB_CARRY, ctx, instr);
20292 ctx->d = UINT(ctx->Rd);
20293 ctx->n = UINT(ctx->Rn);
20294 ctx->m = UINT(ctx->Rm);
20295 ctx->datasize = (ctx->sf==1) ? 0x40 : 0x20;
20296 ctx->sub_op = (ctx->op==1);
20297 ctx->setflags = (ctx->S==1);
20298 instr->setflags = (ctx->S==1) ? FLAGEFFECT_SETS : FLAGEFFECT_NONE;
20299 /* regular aliases */
20300 if(ctx->Rn==0x1f) return NGCS_SBCS(ctx, instr);
20301 if(ctx->sf==0) OK(ENC_SBCS_32_ADDSUB_CARRY);
20302 if(ctx->sf==1) OK(ENC_SBCS_64_ADDSUB_CARRY);
20303 }
20304 return rc;
20305}
20306
20307/* sbfiz_sbfm.xml */
20308int SBFIZ_SBFM(context *ctx, Instruction *instr)

Callers 1

Calls 2

decode_fields32Function · 0.85
NGCS_SBCSFunction · 0.85

Tested by

no test coverage detected