mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-05-31 17:30:22 +00:00
target-m68k: add cmpm
Backports commit 817af1c72d227fd5759ef882bef61acee40679b1 from qemu
This commit is contained in:
parent
e6ca471dda
commit
e1c7d37556
|
@ -2291,6 +2291,22 @@ DISAS_INSN(cmpa)
|
||||||
gen_update_cc_cmp(s, reg, src, OS_LONG);
|
gen_update_cc_cmp(s, reg, src, OS_LONG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DISAS_INSN(cmpm)
|
||||||
|
{
|
||||||
|
TCGContext *tcg_ctx = s->uc->tcg_ctx;
|
||||||
|
int opsize = insn_opsize(insn);
|
||||||
|
TCGv src, dst;
|
||||||
|
|
||||||
|
/* Post-increment load (mode 3) from Ay. */
|
||||||
|
src = gen_ea_mode(env, s, 3, REG(insn, 0), opsize,
|
||||||
|
tcg_ctx->NULL_QREG, NULL, EA_LOADS);
|
||||||
|
/* Post-increment load (mode 3) from Ax. */
|
||||||
|
dst = gen_ea_mode(env, s, 3, REG(insn, 9), opsize,
|
||||||
|
tcg_ctx->NULL_QREG, NULL, EA_LOADS);
|
||||||
|
|
||||||
|
gen_update_cc_cmp(s, dst, src, opsize);
|
||||||
|
}
|
||||||
|
|
||||||
DISAS_INSN(eor)
|
DISAS_INSN(eor)
|
||||||
{
|
{
|
||||||
TCGContext *tcg_ctx = s->uc->tcg_ctx;
|
TCGContext *tcg_ctx = s->uc->tcg_ctx;
|
||||||
|
@ -3581,6 +3597,7 @@ void register_m68k_insns (CPUM68KState *env)
|
||||||
INSN(cmpa, b1c0, f1c0, CF_ISA_A);
|
INSN(cmpa, b1c0, f1c0, CF_ISA_A);
|
||||||
INSN(cmp, b000, f100, M68000);
|
INSN(cmp, b000, f100, M68000);
|
||||||
INSN(eor, b100, f100, M68000);
|
INSN(eor, b100, f100, M68000);
|
||||||
|
INSN(cmpm, b108, f138, M68000);
|
||||||
INSN(cmpa, b0c0, f0c0, M68000);
|
INSN(cmpa, b0c0, f0c0, M68000);
|
||||||
INSN(eor, b180, f1c0, CF_ISA_A);
|
INSN(eor, b180, f1c0, CF_ISA_A);
|
||||||
BASE(and, c000, f000);
|
BASE(and, c000, f000);
|
||||||
|
|
Loading…
Reference in a new issue