- [NEW] Afegida l'opció de "break on interrupt"
This commit is contained in:
@@ -247,6 +247,7 @@ namespace z80debug
|
||||
|
||||
void stop()
|
||||
{
|
||||
//history::gototop();
|
||||
zxscreen::setTitle(" (stopped)");
|
||||
pause();
|
||||
is_debugging = true;
|
||||
@@ -623,7 +624,7 @@ namespace z80debug
|
||||
} else if (strcmp(cmd, "b")==0 || strcmp(cmd, "break")==0) {
|
||||
getcmd();
|
||||
if (cmd[0] == 0) { breakpoints[z80::getPC()]=1; return; }
|
||||
if (cmd[0] == 'i') { z80::setOption(Z80_OPTION_BREAK_ON_INTERRUPT, !z80::getOption(Z80_OPTION_BREAK_ON_INTERRUPT)); return; }
|
||||
if (cmd[0] == 'i') { z80::setOption(Z80_OPTION_BREAK_ON_INTERRUPT, !z80::getOption(Z80_OPTION_BREAK_ON_INTERRUPT)); sendToConsoleLog("Break on interrupt."); return; }
|
||||
int address = getnum(cmd);
|
||||
if (address<0 || address>65536) { sendToConsoleLog("Illegal break address"); return; }
|
||||
getcmd();
|
||||
|
||||
Reference in New Issue
Block a user