/// Sets the font for the emulator within 0x050-0x200
Sets the font for the emulator within 0x050-0x200
Sets the font for the emulator within 0x050 - 0x200
pub fn load_font(mut self, font: Vec<u8>) -> Self {
        // Limit bytes
        let font: Vec<u8> = font.into_iter().take(0x200 - 0x050).collect();
        // Write to memory
        for (i, b) in font.iter().enumerate() {
            self.memory[0x050 + i] = *b;
        }
        self
    }
pub fn load_font ( mut self , font : Vec < u8 > ) -> Self { // Limit bytes let font : Vec < u8 > = font . into_iter ( ) . take ( 0x200 - 0x050 ) . collect ( ) ; // Write to memory for ( i , b ) in font . iter ( ) . enumerate ( ) { self . memory [ 0x050 + i ] = * b ; } self }
Sets the font for the emulator within 0x050-0x200
Sets the font for the emulator within 0x050 - 0x200
mut self
font
Vec<u8>