mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-04-10 19:15:14 +00:00
Fix 16-bit variables not displaying correctly in Z80 debugger (at least in MSVC builds)
This commit is contained in:
parent
a20366d338
commit
b7755c9ae1
|
@ -19,8 +19,8 @@
|
||||||
** with Supermodel. If not, see <http://www.gnu.org/licenses/>.
|
** with Supermodel. If not, see <http://www.gnu.org/licenses/>.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Z80Debug.cpp
|
* Z80Debug.cpp
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef SUPERMODEL_DEBUGGER
|
#ifdef SUPERMODEL_DEBUGGER
|
||||||
|
@ -476,12 +476,14 @@ namespace Debugger
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'j': // #H
|
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);
|
opFlags = GetOpFlags(addr, opcode);
|
||||||
FormatJumpAddress(valStr, tAddr, opFlags);
|
FormatJumpAddress(valStr, tAddr, opFlags);
|
||||||
break;
|
break;
|
||||||
case 'a': // #h
|
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);
|
FormatAddress(valStr, tAddr, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue