dont fill int register with high bits
This commit is contained in:
parent
b95ab33ec9
commit
f0f194f5d2
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue