From f0f194f5d2e1e91cf62bbb2166d2b6e440e1d1f5 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Fri, 24 Feb 2023 11:06:10 +1100 Subject: [PATCH] dont fill int register with high bits --- src/processor/memory/interrupts.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/processor/memory/interrupts.rs b/src/processor/memory/interrupts.rs index 90b0540..cc7e531 100644 --- a/src/processor/memory/interrupts.rs +++ b/src/processor/memory/interrupts.rs @@ -11,8 +11,7 @@ struct InterruptRegister { impl InterruptRegister { fn as_register(&self) -> u8 { - 0b11100000 - | bool_to_shifted(self.vblank, 0) + bool_to_shifted(self.vblank, 0) | bool_to_shifted(self.lcd_stat, 1) | bool_to_shifted(self.timer, 2) | bool_to_shifted(self.serial, 3)