mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-07 16:18:04 -04:00
core, fix z80 irq handling, reset defaults (cz80, drz80)
This commit is contained in:
parent
bfe516c3a9
commit
ad43165afc
6 changed files with 35 additions and 40 deletions
|
@ -212,6 +212,8 @@ 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