fn from_register(reg: u8) -> Interrupts {
        Interrupts {
            vblank: reg & 0x01 != 0,
            lcdc:   reg & 0x02 != 0,
            timer:  reg & 0x04 != 0,
            serial: reg & 0x08 != 0,
            button: reg & 0x10 != 0,
        }
    }
/// Convert IE/IF register to Interrupt struct
Convert IE/IF register to Interrupt struct
Convert IE / IF register to Interrupt struct
fn from_register(reg: u8) -> Interrupts {
        Interrupts {
            vblank: reg & 0x01 != 0,
            lcdc:   reg & 0x02 != 0,
            timer:  reg & 0x04 != 0,
            serial: reg & 0x08 != 0,
            button: reg & 0x10 != 0,
        }
    }
fn from_register ( reg : u8 ) -> Interrupts { Interrupts { vblank : reg & 0x01 != 0 , lcdc : reg & 0x02 != 0 , timer : reg & 0x04 != 0 , serial : reg & 0x08 != 0 , button : reg & 0x10 != 0 , } }
Convert IE/IF register to Interrupt struct
Convert IE / IF register to Interrupt struct
reg
u8
reg
u8