mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-02-16 17:35:39 +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/>.
|
||||
**/
|
||||
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue