diff options
Diffstat (limited to 'sim/mn10300/simops.c')
-rw-r--r-- | sim/mn10300/simops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c index abb5b0c..217cd16 100644 --- a/sim/mn10300/simops.c +++ b/sim/mn10300/simops.c @@ -89,7 +89,7 @@ void OP_F1D0 () /* mov imm8, an */ void OP_9000 () { - State.regs[REG_D0 + ((insn & 0x300) >> 8)] = insn & 0xff; + State.regs[REG_A0 + ((insn & 0x300) >> 8)] = insn & 0xff; } /* mov am, an */ @@ -445,7 +445,7 @@ void OP_2C0000 () unsigned long value; value = SEXT16 (insn & 0xffff); - State.regs[REG_A0 + ((insn & 0x30000) >> 16)] = value; + State.regs[REG_D0 + ((insn & 0x30000) >> 16)] = value; } /* mov imm32,dn */ |