mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-09 07:29:33 +00:00
Debugger cleanup misc march 2023 (#1199)
* Cleanup breakpoints * Cleanup sections * Tab cleanup
This commit is contained in:
parent
a5c5603749
commit
9a857183ba
|
@ -29,20 +29,20 @@
|
||||||
// Breakpoints
|
// Breakpoints
|
||||||
enum BreakpointHit_t
|
enum BreakpointHit_t
|
||||||
{
|
{
|
||||||
BP_HIT_NONE = 0
|
BP_HIT_NONE = 0
|
||||||
, BP_HIT_INVALID = (1 << 0)
|
, BP_HIT_INVALID = (1 << 0)
|
||||||
, BP_HIT_OPCODE = (1 << 1)
|
, BP_HIT_OPCODE = (1 << 1)
|
||||||
, BP_HIT_REG = (1 << 2)
|
, BP_HIT_REG = (1 << 2)
|
||||||
, BP_HIT_MEM = (1 << 3)
|
, BP_HIT_MEM = (1 << 3)
|
||||||
, BP_HIT_MEMR = (1 << 4)
|
, BP_HIT_MEMR = (1 << 4)
|
||||||
, BP_HIT_MEMW = (1 << 5)
|
, BP_HIT_MEMW = (1 << 5)
|
||||||
, BP_HIT_PC_READ_FLOATING_BUS_OR_IO_MEM = (1 << 6)
|
, BP_HIT_PC_READ_FLOATING_BUS_OR_IO_MEM = (1 << 6)
|
||||||
, BP_HIT_INTERRUPT = (1 << 7)
|
, BP_HIT_INTERRUPT = (1 << 7)
|
||||||
, BP_DMA_TO_IO_MEM = (1 << 8)
|
, BP_DMA_TO_IO_MEM = (1 << 8)
|
||||||
, BP_DMA_FROM_IO_MEM = (1 << 9)
|
, BP_DMA_FROM_IO_MEM = (1 << 9)
|
||||||
, BP_DMA_TO_MEM = (1 << 10)
|
, BP_DMA_TO_MEM = (1 << 10)
|
||||||
, BP_DMA_FROM_MEM = (1 << 11)
|
, BP_DMA_FROM_MEM = (1 << 11)
|
||||||
, BP_HIT_VIDEO_POS = (1 << 12)
|
, BP_HIT_VIDEO_POS = (1 << 12)
|
||||||
};
|
};
|
||||||
|
|
||||||
extern int g_bDebugBreakpointHit;
|
extern int g_bDebugBreakpointHit;
|
||||||
|
|
|
@ -181,7 +181,7 @@ void Help_Operators()
|
||||||
sText += g_aBreakpointSymbols[ iBreakOp ];
|
sText += g_aBreakpointSymbols[ iBreakOp ];
|
||||||
sText += ' ';
|
sText += ' ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sText += CHC_DEFAULT;
|
sText += CHC_DEFAULT;
|
||||||
ConsolePrint( sText.c_str() );
|
ConsolePrint( sText.c_str() );
|
||||||
}
|
}
|
||||||
|
@ -379,7 +379,7 @@ bool Colorize( char * pDst, size_t /*nDstSz*/, const char* pSrc)
|
||||||
{
|
{
|
||||||
*pDst = *pSrc;
|
*pDst = *pSrc;
|
||||||
pDst++;
|
pDst++;
|
||||||
pSrc++;
|
pSrc++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*pDst = 0;
|
*pDst = 0;
|
||||||
|
@ -602,7 +602,7 @@ Update_t CmdHelpSpecific (int nArgs)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (iArg = 1; iArg <= nArgs; iArg++ )
|
for (iArg = 1; iArg <= nArgs; iArg++ )
|
||||||
{
|
{
|
||||||
iCommand = 0;
|
iCommand = 0;
|
||||||
nFound = 0;
|
nFound = 0;
|
||||||
|
|
||||||
|
@ -726,7 +726,7 @@ Update_t CmdHelpSpecific (int nArgs)
|
||||||
ConsoleBufferPushFormat( "%s <-- Missing", pCommand->m_sName );
|
ConsoleBufferPushFormat( "%s <-- Missing", pCommand->m_sName );
|
||||||
#if DEBUG_COMMAND_HELP
|
#if DEBUG_COMMAND_HELP
|
||||||
if (! bAllCommands) // Release version doesn't display message
|
if (! bAllCommands) // Release version doesn't display message
|
||||||
{
|
{
|
||||||
ConsoleBufferPushFormat( "Missing Summary Help: %s", g_aCommands[ iCommand ].aName );
|
ConsoleBufferPushFormat( "Missing Summary Help: %s", g_aCommands[ iCommand ].aName );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -735,11 +735,11 @@ Update_t CmdHelpSpecific (int nArgs)
|
||||||
|
|
||||||
if (bCategory)
|
if (bCategory)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MASTER HELP
|
// MASTER HELP
|
||||||
switch (iCommand)
|
switch (iCommand)
|
||||||
{
|
{
|
||||||
// CPU / General
|
// CPU / General
|
||||||
case CMD_ASSEMBLE:
|
case CMD_ASSEMBLE:
|
||||||
ConsoleColorizePrint( " Usage: [address | symbol]" );
|
ConsoleColorizePrint( " Usage: [address | symbol]" );
|
||||||
|
@ -1141,7 +1141,7 @@ Update_t CmdHelpSpecific (int nArgs)
|
||||||
ConsoleBufferPush( " Notes: If no filename specified, defaults to the last filename (if possible)" );
|
ConsoleBufferPush( " Notes: If no filename specified, defaults to the last filename (if possible)" );
|
||||||
}
|
}
|
||||||
if (iCommand == CMD_MEMORY_SAVE)
|
if (iCommand == CMD_MEMORY_SAVE)
|
||||||
{
|
{
|
||||||
ConsoleColorizePrint( " Usage: [\"Filename\"],[bank:]address,length" );
|
ConsoleColorizePrint( " Usage: [\"Filename\"],[bank:]address,length" );
|
||||||
ConsoleColorizePrint( " Usage: [\"Filename\"],[bank:]range" );
|
ConsoleColorizePrint( " Usage: [\"Filename\"],[bank:]range" );
|
||||||
Help_Range();
|
Help_Range();
|
||||||
|
@ -1285,7 +1285,7 @@ Update_t CmdHelpSpecific (int nArgs)
|
||||||
ConsoleColorizePrint( " Usage: symbol" );
|
ConsoleColorizePrint( " Usage: symbol" );
|
||||||
ConsoleBufferPush( " Looks up symbol in all 3 symbol tables: main, user, source" );
|
ConsoleBufferPush( " Looks up symbol in all 3 symbol tables: main, user, source" );
|
||||||
break;
|
break;
|
||||||
// Cycles
|
// Cycles
|
||||||
case CMD_CYCLES_INFO:
|
case CMD_CYCLES_INFO:
|
||||||
ConsoleColorizePrint(" Usage: <abs|rel|part>");
|
ConsoleColorizePrint(" Usage: <abs|rel|part>");
|
||||||
ConsoleBufferPush(" Where:");
|
ConsoleBufferPush(" Where:");
|
||||||
|
@ -1296,8 +1296,7 @@ Update_t CmdHelpSpecific (int nArgs)
|
||||||
case CMD_CYCLES_RESET:
|
case CMD_CYCLES_RESET:
|
||||||
ConsoleBufferPush(" Use in conjunctioned with 'cycles part' to reset to current instruction");
|
ConsoleBufferPush(" Use in conjunctioned with 'cycles part' to reset to current instruction");
|
||||||
break;
|
break;
|
||||||
// Video-Scanner
|
// Video-Scanner
|
||||||
|
|
||||||
case CMD_VIDEO_SCANNER_INFO:
|
case CMD_VIDEO_SCANNER_INFO:
|
||||||
ConsoleColorizePrint(" Usage: <dec|hex|real|apple>");
|
ConsoleColorizePrint(" Usage: <dec|hex|real|apple>");
|
||||||
ConsoleBufferPush(" Where:");
|
ConsoleBufferPush(" Where:");
|
||||||
|
@ -1308,7 +1307,7 @@ Update_t CmdHelpSpecific (int nArgs)
|
||||||
,CHC_COMMAND, CHC_DEFAULT // green
|
,CHC_COMMAND, CHC_DEFAULT // green
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
// View
|
// View
|
||||||
case CMD_VIEW_TEXT4X:
|
case CMD_VIEW_TEXT4X:
|
||||||
case CMD_VIEW_TEXT41:
|
case CMD_VIEW_TEXT41:
|
||||||
case CMD_VIEW_TEXT42:
|
case CMD_VIEW_TEXT42:
|
||||||
|
@ -1448,7 +1447,7 @@ Update_t CmdHelpList (int nArgs)
|
||||||
return UPDATE_CONSOLE_DISPLAY;
|
return UPDATE_CONSOLE_DISPLAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
Update_t CmdVersion (int nArgs)
|
Update_t CmdVersion (int nArgs)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user