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

Function ADC

arch/arm64/disassembler/decode2.c:49–67  ·  view source on GitHub ↗

adc.xml */

Source from the content-addressed store, hash-verified

47
48/* adc.xml */
49int ADC(context *ctx, Instruction *instr)
50{
51 int rc = DECODE_STATUS_UNMATCHED;
52 /* class iclass_no_s */
53 /* sf=x|op=0|S=0|11010000|Rm=xxxxx|000000|Rn=xxxxx|Rd=xxxxx */
54 if((INSWORD & 0x7FE0FC00)==0x1A000000) {
55 decode_fields32(ENC_ADC_32_ADDSUB_CARRY, ctx, instr);
56 ctx->d = UINT(ctx->Rd);
57 ctx->n = UINT(ctx->Rn);
58 ctx->m = UINT(ctx->Rm);
59 ctx->datasize = (ctx->sf==1) ? 0x40 : 0x20;
60 ctx->sub_op = (ctx->op==1);
61 ctx->setflags = (ctx->S==1);
62 instr->setflags = (ctx->S==1) ? FLAGEFFECT_SETS : FLAGEFFECT_NONE;
63 if(ctx->sf==0) OK(ENC_ADC_32_ADDSUB_CARRY);
64 if(ctx->sf==1) OK(ENC_ADC_64_ADDSUB_CARRY);
65 }
66 return rc;
67}
68
69/* adcs.xml */
70int ADCS(context *ctx, Instruction *instr)

Callers 1

Calls 1

decode_fields32Function · 0.85

Tested by

no test coverage detected