pub fn load_bin(&mut self, file: &str, org: u16) -> Result<(), std::io::Error> {
        let mut f = File::open(file)?;
        let mut buf = Vec::new();
        f.read_to_end(&mut buf)?;
        self.address_space[org as usize..(buf.len() + org as usize)].clone_from_slice(&buf[..]);
        Ok(())
    }
/// Loads binary data from disk into memory at $0000 + offset
Loads binary data from disk into memory at $0000 + offset
Loads binary data from disk into memory at $0000 + offset
pub fn load_bin(&mut self, file: &str, org: u16) -> Result<(), std::io::Error> {
        let mut f = File::open(file)?;
        let mut buf = Vec::new();
        f.read_to_end(&mut buf)?;
        self.address_space[org as usize..(buf.len() + org as usize)].clone_from_slice(&buf[..]);
        Ok(())
    }
pub fn load_bin ( & mut self , file : & str , org : u16 ) -> Result < ( ) , std :: io :: Error > { let mut f = File :: open ( file ) ? ; let mut buf = Vec :: new ( ) ; f . read_to_end ( & mut buf ) ? ; self . address_space [ org as usize .. ( buf . len ( ) + org as usize ) ] . clone_from_slice ( & buf [ .. ] ) ; Ok ( ( ) ) }
Loads binary data from disk into memory at $0000 + offset
Loads binary data from disk into memory at $0000 + offset
&mut self
file
&str
org
u16
&mut self
file
&str
org
u16