Debugger: fix to wrap 16-bit addr for mem watch (was getting AppleWin debugger crash)
This commit is contained in:
parent
2d086e87ec
commit
3766c1e014
1 changed files with 1 additions and 1 deletions
|
@ -3435,7 +3435,7 @@ void DrawWatches (int line)
|
||||||
else
|
else
|
||||||
DebuggerSetColorBG( DebuggerGetColor( BG_DATA_2 ));
|
DebuggerSetColorBG( DebuggerGetColor( BG_DATA_2 ));
|
||||||
|
|
||||||
BYTE nValue8 = (unsigned)*(LPBYTE)(mem + nTarget16 + iByte );
|
BYTE nValue8 = mem[ (nTarget16 + iByte) & 0xffff ];
|
||||||
sprintf(sText,"%02X", nValue8 );
|
sprintf(sText,"%02X", nValue8 );
|
||||||
PrintTextCursorX( sText, rect2 );
|
PrintTextCursorX( sText, rect2 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue