From 5d9e7b57b4772c7755a1d3da636d68f97e91b451 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sun, 27 Sep 2026 17:56:58 +0100 Subject: [PATCH] Catch a missing condition power call change --- LR35902/LR35902.BlarggTest/Board.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LR35902/LR35902.BlarggTest/Board.cs b/LR35902/LR35902.BlarggTest/Board.cs index fa2d0ce..19611f3 100644 --- a/LR35902/LR35902.BlarggTest/Board.cs +++ b/LR35902/LR35902.BlarggTest/Board.cs @@ -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;