z80: Start up values for SP and AF

This commit is contained in:
alyosha-tas 2018-06-13 08:29:07 -04:00
parent 837c681bd5
commit 93dab42ba6
1 changed files with 6 additions and 0 deletions

View File

@ -127,6 +127,12 @@ namespace BizHawk.Emulation.Cores.Components.Z80A
Regs[i] = 0;
}
// These registers are set as part of the reset process
Regs[A] = 0xFF;
Regs[F] = 0xFF;
Regs[SPl] = 0xFF;
Regs[SPh] = 0xFF;
// the IRQ1 vector is 0x38
Regs[IRQ_V] = 0x38;
// The NMI vector is constant 0x66