mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -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
|
@ -112,14 +112,7 @@ void z80_reset(void)
|
|||
drZ80.Z80IF = 0;
|
||||
drZ80.z80irqvector = 0xff0000; // RST 38h
|
||||
drZ80.Z80PC_BASE = drZ80.Z80PC = z80_read_map[0] << 1;
|
||||
drZ80.Z80SP = 0xffff;
|
||||
drZ80.Z80F = 0xff;
|
||||
drZ80.Z80A = 0xff << 24;
|
||||
// others not changed, undefined on cold boot
|
||||
/*
|
||||
drZ80.Z80IX = 0xFFFF << 16;
|
||||
drZ80.Z80IY = 0xFFFF << 16;
|
||||
*/
|
||||
#ifdef FAST_Z80SP
|
||||
// drZ80 is locked in single bank
|
||||
drz80_sp_base = (PicoIn.AHW & PAHW_SMS) ? 0xc000 : 0x0000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue