fn as_register(&self) -> u8 {
        let mut r = 0;

        r |= (self.vblank as u8) << 0;
        r |= (self.lcdc   as u8) << 1;
        r |= (self.timer  as u8) << 2;
        r |= (self.serial as u8) << 3;
        r |= (self.button as u8) << 4;

        r
    }
/// Convert Interrupts into IE/IF register
Convert Interrupts into IE/IF register
Convert Interrupts into IE / IF register
fn as_register(&self) -> u8 {
        let mut r = 0;
        r |= (self.vblank as u8) << 0;
        r |= (self.lcdc   as u8) << 1;
        r |= (self.timer  as u8) << 2;
        r |= (self.serial as u8) << 3;
        r |= (self.button as u8) << 4;
        r
    }
fn as_register ( & self ) -> u8 { let mut r = 0 ; r |= ( self . vblank as u8 ) << 0 ; r |= ( self . lcdc as u8 ) << 1 ; r |= ( self . timer as u8 ) << 2 ; r |= ( self . serial as u8 ) << 3 ; r |= ( self . button as u8 ) << 4 ; r }
Convert Interrupts into IE/IF register
Convert Interrupts into IE / IF register
&self
&self