sbc.xml */
| 20260 | |
| 20261 | /* sbc.xml */ |
| 20262 | int 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 */ |
| 20285 | int SBCS(context *ctx, Instruction *instr) |
no test coverage detected