pub fn dump_rom(&self, start_address: usize, byte_number: usize) -> Vec<u8> {
        let mut rom: Vec<u8> = Vec::new();
        // for each memory address after the pointer add that address to the buffer, then return the buffer
        for i in start_address..start_address + byte_number {
            rom.push(self.memory[i]);
        }
        return rom;
    }
/// Returns `byte_number` amount of bytes after the `pointer` in rom
Returns `byte_number` amount of bytes after the `pointer` in rom
Returns ` byte_number ` amount of bytes after the ` pointer ` in rom
pub fn dump_rom(&self, start_address: usize, byte_number: usize) -> Vec<u8> {
        let mut rom: Vec<u8> = Vec::new();
        // for each memory address after the pointer add that address to the buffer, then return the buffer
        for i in start_address..start_address + byte_number {
            rom.push(self.memory[i]);
        }
        return rom;
    }
pub fn dump_rom ( & self , start_address : usize , byte_number : usize ) -> Vec < u8 > { let mut rom : Vec < u8 > = Vec :: new ( ) ; // for each memory address after the pointer add that address to the buffer, then return the buffer for i in start_address .. start_address + byte_number { rom . push ( self . memory [ i ] ) ; } return rom ; }
Returns `byte_number` amount of bytes after the `pointer` in rom
Returns ` byte_number ` amount of bytes after the ` pointer ` in rom
&self
start_address
usize
byte_number
usize