mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-08 08:28:05 -04:00
core, another fix for z80 reset
This commit is contained in:
parent
2a87da47c0
commit
506adbd5eb
3 changed files with 13 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue