Catch a missing condition power call change

This commit is contained in:
Adrian Conlon committed 2026-09-27 17:56:58 +01:00
1 parent 38a8d2d850
commit 5d9e7b57b4
1 file changed
+2 -2
+2 -2
View File
@@ -20,6 +20,7 @@ namespace LR35902.BlarggTest
public override void Initialize()
{
#if GAMEBOY_DOCTOR
this.CPU.RaisedPOWER += this.CPU_RaisedPOWER;
this.CPU.ExecutingInstruction += this.CPU_ExecutingInstruction_Debug;
#else
this.CPU.WrittenMemory += this.Board_WrittenByte;
@@ -33,9 +34,8 @@ namespace LR35902.BlarggTest
}
#if GAMEBOY_DOCTOR
public override void RaisePOWER()
private void CPU_RaisedPOWER(object? sender, EventArgs e)
{
base.RaisePOWER();
this.CPU.A = 0x01;
this.CPU.F = 0xB0;
this.CPU.B = 0x00;