next now skips over halt, closes #233

This commit is contained in:
Lior Halphon 2020-03-27 17:49:14 +03:00
parent 05403d3a56
commit 1a3572316f
1 changed files with 1 additions and 1 deletions

View File

@ -2059,7 +2059,7 @@ void GB_debugger_run(GB_gameboy_t *gb)
if (gb->debug_disable) return;
char *input = NULL;
if (gb->debug_next_command && gb->debug_call_depth <= 0) {
if (gb->debug_next_command && gb->debug_call_depth <= 0 && !gb->halted) {
gb->debug_stopped = true;
}
if (gb->debug_fin_command && gb->debug_call_depth == -1) {