/// Load a program ROM into memory.
Load a program ROM into memory.
Load a program ROM into memory .
pub fn load_rom(&mut self, filename: &str) {
        let mut file = File::open(filename).unwrap();
        // Reads up to memory (4 KB) bytes
        file.read(&mut self.memory[(PROGRAM_ROM_START as usize)..])
            .unwrap();
    }
pub fn load_rom ( & mut self , filename : & str ) { let mut file = File :: open ( filename ) . unwrap ( ) ; // Reads up to memory (4 KB) bytes file . read ( & mut self . memory [ ( PROGRAM_ROM_START as usize ) .. ] ) . unwrap ( ) ; }
Load a program ROM into memory.
Load a program ROM into memory .
&mut self
filename
&str