Fix 16-bit variables not displaying correctly in Z80 debugger (at least in MSVC builds)

This commit is contained in:
Matthew Daniels 2021-05-09 18:12:40 +00:00
parent a20366d338
commit b7755c9ae1

View file

@ -19,8 +19,8 @@
** with Supermodel. If not, see <http://www.gnu.org/licenses/>.
**/
/*
* Z80Debug.cpp
/*
* Z80Debug.cpp
*/
#ifdef SUPERMODEL_DEBUGGER
@ -476,12 +476,14 @@ namespace Debugger
}
break;
case 'j': // #H
tAddr = m_bus->Read8(dAddr++) + (m_bus->Read8(dAddr++)<<8);
tAddr = m_bus->Read8(dAddr++);
tAddr += m_bus->Read8(dAddr++) << 8;
opFlags = GetOpFlags(addr, opcode);
FormatJumpAddress(valStr, tAddr, opFlags);
break;
case 'a': // #h
tAddr = m_bus->Read8(dAddr++) + (m_bus->Read8(dAddr++)<<8);
tAddr = m_bus->Read8(dAddr++);
tAddr += m_bus->Read8(dAddr++) << 8;
FormatAddress(valStr, tAddr, true);
break;
}