mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-11 05:29:55 +00:00
Fixed debugger mouse click not checking if in debug mode
This commit is contained in:
parent
ecac78cccf
commit
c5f66c59bb
@ -43,7 +43,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
// TODO: COLOR LOAD ["filename"]
|
// TODO: COLOR LOAD ["filename"]
|
||||||
|
|
||||||
// See Debugger_Changelong.txt for full details
|
// See Debugger_Changelong.txt for full details
|
||||||
const int DEBUGGER_VERSION = MAKE_VERSION(2,5,7,5);
|
const int DEBUGGER_VERSION = MAKE_VERSION(2,5,7,6);
|
||||||
|
|
||||||
|
|
||||||
// Public _________________________________________________________________________________________
|
// Public _________________________________________________________________________________________
|
||||||
@ -9157,6 +9157,9 @@ void DebuggerCursorNext()
|
|||||||
//===========================================================================
|
//===========================================================================
|
||||||
void DebuggerMouseClick( int x, int y )
|
void DebuggerMouseClick( int x, int y )
|
||||||
{
|
{
|
||||||
|
if (g_nAppMode != MODE_DEBUG)
|
||||||
|
return;
|
||||||
|
|
||||||
int nFontWidth = g_aFontConfig[ FONT_DISASM_DEFAULT ]._nFontWidthAvg;
|
int nFontWidth = g_aFontConfig[ FONT_DISASM_DEFAULT ]._nFontWidthAvg;
|
||||||
int nFontHeight = g_aFontConfig[ FONT_DISASM_DEFAULT ]._nLineHeight ;
|
int nFontHeight = g_aFontConfig[ FONT_DISASM_DEFAULT ]._nLineHeight ;
|
||||||
|
|
||||||
|
@ -404,6 +404,13 @@ bool _6502_CalcRelativeOffset( int nOpcode, int nBaseAddress, int nTargetAddress
|
|||||||
//===========================================================================
|
//===========================================================================
|
||||||
int _6502_GetOpmodeOpbytes ( const int iAddress, int & iOpmode_, int & nOpbytes_ )
|
int _6502_GetOpmodeOpbytes ( const int iAddress, int & iOpmode_, int & nOpbytes_ )
|
||||||
{
|
{
|
||||||
|
#if _DEBUG
|
||||||
|
if (! g_aOpcodes)
|
||||||
|
{
|
||||||
|
MessageBox( g_hFrameWindow, "Debugger not properly initialized", "ERROR", MB_OK );
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int iOpcode_ = *(mem + iAddress);
|
int iOpcode_ = *(mem + iAddress);
|
||||||
iOpmode_ = g_aOpcodes[ iOpcode_ ].nAddressMode;
|
iOpmode_ = g_aOpcodes[ iOpcode_ ].nAddressMode;
|
||||||
nOpbytes_ = g_aOpmodes[ iOpmode_ ].m_nBytes;
|
nOpbytes_ = g_aOpmodes[ iOpmode_ ].m_nBytes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user