From aee1b3d3b88210a6a22f5116521b64a35575cf3f Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Sun, 22 Mar 2009 21:23:12 +0000 Subject: [PATCH] FIxed MOVBE16 --- bochs/cpu/bit.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bochs/cpu/bit.cc b/bochs/cpu/bit.cc index 819f9a5a3..f0e6fa69c 100644 --- a/bochs/cpu/bit.cc +++ b/bochs/cpu/bit.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: bit.cc,v 1.62 2009-03-03 16:55:20 sshwarts Exp $ +// $Id: bit.cc,v 1.63 2009-03-22 21:23:12 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -303,7 +303,7 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::MOVBE_GwEw(bxInstruction_c *i) b0 = val16 & 0xff; val16 >>= 8; b1 = val16; - val16 = (b1<<8) | b0; + val16 = (b0<<8) | b1; BX_WRITE_16BIT_REG(i->nnn(), val16); #else @@ -319,7 +319,7 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::MOVBE_EwGw(bxInstruction_c *i) b0 = val16 & 0xff; val16 >>= 8; b1 = val16; - val16 = (b1<<8) | b0; + val16 = (b0<<8) | b1; if (i->modC0()) { BX_WRITE_16BIT_REG(i->rm(), val16);