dont fill int register with high bits

This commit is contained in:
Alex Janka 2023-02-24 11:06:10 +11:00
parent b95ab33ec9
commit f0f194f5d2

View file

@ -11,8 +11,7 @@ struct InterruptRegister {
impl InterruptRegister { impl InterruptRegister {
fn as_register(&self) -> u8 { 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.lcd_stat, 1)
| bool_to_shifted(self.timer, 2) | bool_to_shifted(self.timer, 2)
| bool_to_shifted(self.serial, 3) | bool_to_shifted(self.serial, 3)