adcs.xml */
| 68 | |
| 69 | /* adcs.xml */ |
| 70 | int 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 */ |
| 91 | int ADDG(context *ctx, Instruction *instr) |
no test coverage detected