core, another fix for z80 reset

This commit is contained in:
kub 2024-03-02 10:34:50 +01:00
parent 2a87da47c0
commit 506adbd5eb
3 changed files with 13 additions and 13 deletions

View file

@ -212,8 +212,6 @@ void Cz80_Reset(cz80_struc *CPU)
{
// I, R, CPU and interrupts logic is reset, registers are untouched
memset(&CPU->R, 0, (FPTR)&CPU->BasePC - (FPTR)&CPU->R);
Cz80_Set_Reg(CPU, CZ80_FA, 0xffff);
Cz80_Set_Reg(CPU, CZ80_SP, 0xffff);
Cz80_Set_Reg(CPU, CZ80_PC, 0);
}