- [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:
2024-12-18 13:22:56 +01:00
parent bdec53eb97
commit 6f45044a9a
4 changed files with 31 additions and 14 deletions

View File

@@ -186,7 +186,7 @@ namespace zxscreen
}
}
void refresh(const uint32_t dt)
void refresh(const uint32_t dt, const bool full)
{
const uint8_t* memory = z80::getMem();
const uint8_t border_color = zx_ula::get_border_color();
@@ -220,16 +220,20 @@ namespace zxscreen
t_screen=0;
ptr_pixel = zx_pixels;
redraw();
z80::interrupt();
if (!full) z80::interrupt();
}
}
}
void fullrefresh()
{
uint32_t tmp = t_screen;
t_screen = 0;
uint8_t * tmp_ptr = ptr_pixel;
ptr_pixel = zx_pixels;
refresh(69888);
refresh(69888, true);
ptr_pixel = tmp_ptr;
t_screen = tmp;
}
void debugrefresh(const uint32_t dt)