mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-05 11:25:05 +00:00
Debugger: fix to wrap 16-bit addr for mem watch (was getting AppleWin debugger crash)
This commit is contained in:
@@ -3435,7 +3435,7 @@ void DrawWatches (int line)
|
||||
else
|
||||
DebuggerSetColorBG( DebuggerGetColor( BG_DATA_2 ));
|
||||
|
||||
BYTE nValue8 = (unsigned)*(LPBYTE)(mem + nTarget16 + iByte );
|
||||
BYTE nValue8 = mem[ (nTarget16 + iByte) & 0xffff ];
|
||||
sprintf(sText,"%02X", nValue8 );
|
||||
PrintTextCursorX( sText, rect2 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user