- [CHG] En proves: fer un IN a un port no usat ara torna 0x00 en compte de 0xFF. Probablement hi haurà que revertir-ho.
- [NEW] Amb F9 es pot ficar o llevar un breakpoint en l'adreça on estiga el cursor del desensamblador. - [NEW] Nou comando de la consola "show analyzer" - [FIX] Quan es fa un full refresh mentres se debugga no ha de causar interrupcions. A més, ara mantenim els t_states i el punter a pantalla. - [FIX] La instrucció CPIR llegia mal la memòria apuntada per HL al considerar si hi havia coincidencia
This commit is contained in:
21
z80debug.cpp
21
z80debug.cpp
@@ -147,11 +147,13 @@ namespace z80debug
|
||||
z80debug::history::goforward();
|
||||
z80debug::refresh();
|
||||
z80analyze::refresh();
|
||||
/*} else if (e->key.keysym.scancode==SDL_SCANCODE_F6) {
|
||||
z80debug::history::gototop();
|
||||
const uint8_t dt = z80::step();
|
||||
z80debug::refresh();
|
||||
zxscreen::refresh(dt);*/
|
||||
} else if (e->key.keysym.scancode==SDL_SCANCODE_F9) {
|
||||
const uint16_t address = cursor;
|
||||
if (breakpoints[line_address[address]]==0)
|
||||
breakpoints[line_address[address]]=1;
|
||||
else
|
||||
breakpoints[line_address[address]]=0;
|
||||
refresh();
|
||||
} else if (e->key.keysym.scancode==SDL_SCANCODE_UP) {
|
||||
if (console_history_nav != console_history_pos+1 && console_history[console_history_nav-1][0]!=0) console_history_nav--;
|
||||
//z80debug::cursorback();
|
||||
@@ -965,6 +967,15 @@ namespace z80debug
|
||||
} else {
|
||||
search(cmd);
|
||||
}
|
||||
} else if (strcmp(cmd, "show")==0) {
|
||||
getcmd();
|
||||
if (strcmp(cmd, "analyzer")==0) {
|
||||
z80analyze::show();
|
||||
} else {
|
||||
sendToConsoleLog("Unrecognized window. Usage: Show [analyzer]");
|
||||
}
|
||||
} else {
|
||||
sendToConsoleLog("Unrecognized command.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user