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

Function ADCS

arch/arm64/disassembler/decode2.c:70–88  ·  view source on GitHub ↗

adcs.xml */

Source from the content-addressed store, hash-verified

68
69/* adcs.xml */
70int ADCS(context *ctx, Instruction *instr)
71{
72 int rc = DECODE_STATUS_UNMATCHED;
73 /* class iclass_s */
74 /* sf=x|op=0|S=1|11010000|Rm=xxxxx|000000|Rn=xxxxx|Rd=xxxxx */
75 if((INSWORD & 0x7FE0FC00)==0x3A000000) {
76 decode_fields32(ENC_ADCS_32_ADDSUB_CARRY, ctx, instr);
77 ctx->d = UINT(ctx->Rd);
78 ctx->n = UINT(ctx->Rn);
79 ctx->m = UINT(ctx->Rm);
80 ctx->datasize = (ctx->sf==1) ? 0x40 : 0x20;
81 ctx->sub_op = (ctx->op==1);
82 ctx->setflags = (ctx->S==1);
83 instr->setflags = (ctx->S==1) ? FLAGEFFECT_SETS : FLAGEFFECT_NONE;
84 if(ctx->sf==0) OK(ENC_ADCS_32_ADDSUB_CARRY);
85 if(ctx->sf==1) OK(ENC_ADCS_64_ADDSUB_CARRY);
86 }
87 return rc;
88}
89
90/* addg.xml */
91int ADDG(context *ctx, Instruction *instr)

Callers 1

Calls 1

decode_fields32Function · 0.85

Tested by

no test coverage detected