public void Initialize() { Ports = new TVCPorts(); Memory = new TVCMemory(this); CPU = new Z80(Memory, (IZ80Port)Ports, null, true); Video = new TVCVideo(this); Keyboard = new TVCKeyboard(this); Interrupt = new TVCInterrupt(this); Sound = new TVCSound(this); Cards = new ITVCCard[TVComputerConstants.ExpansionCardCount]; Ports.AddPortReader(0x5a, PortRead5AH); // cartridge init Cartridge = new TVCCartridge(); Cartridge.Initialize(this); //((TVCCartridge)Cartridge).ReadCartridgeFile(@"d:\Projects\Retro\TVCDOC\Multicart4\test.bin"); Reset(); }
/// <summary> /// Removes cartridge /// </summary> public void RemoveCartridge() { // restore original cartridge Cartridge = new TVCCartridge(); Cartridge.Initialize(this); }