/// Loads game from rom. Needs a Real Time Clock
Loads game from rom. Needs a Real Time Clock
Loads game from rom . Needs a Real Time Clock
pub fn from_rom(rom: Vec<u8>, rtc: Box<dyn RTC>) -> Result<Gameboy, String> {
        let cartridge = Cartridge::from_rom(rom)?;
        Ok(Gameboy {
            emulator: Emulator::from_cartridge(cartridge, rtc),
            controller: Controller::new(),
        })
    }
pub fn from_rom ( rom : Vec < u8 > , rtc : Box < dyn RTC > ) -> Result < Gameboy , String > { let cartridge = Cartridge :: from_rom ( rom ) ? ; Ok ( Gameboy { emulator : Emulator :: from_cartridge ( cartridge , rtc ) , controller : Controller :: new ( ) , } ) }
Loads game from rom.
Loads game from rom .
rom
Vec<u8>
rtc
Box<dyn RTC>