mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-10-27 13:38:51 +01:00
rearrange globals
scripted find/replace gives slightly better code on ARM, less unnecessary asm, ~400 bytes saved
This commit is contained in:
parent
759c9d3846
commit
93f9619ed8
47 changed files with 532 additions and 573 deletions
|
|
@ -104,17 +104,17 @@ void z80_reset(void)
|
|||
*/
|
||||
#ifdef FAST_Z80SP
|
||||
// drZ80 is locked in single bank
|
||||
drz80_sp_base = (PicoAHW & PAHW_SMS) ? 0xc000 : 0x0000;
|
||||
drz80_sp_base = (PicoIn.AHW & PAHW_SMS) ? 0xc000 : 0x0000;
|
||||
drZ80.Z80SP_BASE = z80_read_map[drz80_sp_base >> Z80_MEM_SHIFT] << 1;
|
||||
#endif
|
||||
if (PicoAHW & PAHW_SMS)
|
||||
if (PicoIn.AHW & PAHW_SMS)
|
||||
drZ80.Z80SP = drZ80.Z80SP_BASE + 0xdff0; // simulate BIOS
|
||||
// XXX: since we use direct SP pointer, it might make sense to force it to RAM,
|
||||
// but we'll rely on built-in stack protection for now
|
||||
#endif
|
||||
#ifdef _USE_CZ80
|
||||
Cz80_Reset(&CZ80);
|
||||
if (PicoAHW & PAHW_SMS)
|
||||
if (PicoIn.AHW & PAHW_SMS)
|
||||
Cz80_Set_Reg(&CZ80, CZ80_SP, 0xdff0);
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue