public void Initialize() { Ports = new TVCPorts(); Memory = new TVCMemory(this); Memory.LoadSystemMemory(@"..\..\roms\rom.bin"); Memory.LoadExtMemory(@"..\..\roms\ext.bin"); //Memory.LoadCartMemory(@"d:\Stuff\tvc\szanko.rom"); //Memory.LoadCartMemory(@"c:\Temp\tvc\mralex.rom"); //Memory.LoadCartMemory(@"c:\Temp\tvc\invaders.rom"); //Memory.LoadCartMemory(@"c:\Temp\tvc\vili.rom"); //Memory.LoadCartMemory(@"c:\Users\laszlo.arvai\Downloads\cfcart128.crt"); Video = new TVCVideo(this); Keyboard = new TVCKeyboard(this); Interrupt = new TVCInterrupt(this); CPU = new Z80(Memory, Ports, null, true); Cards = new ITVCCard[TVComputerConstants.ExpansionCardCount]; //InsertCard(0, new HBF.HBFCard()); Ports.AddPortReader(0x5a, PortRead5AH); // cartridge init Cartridge = new TVCCartridge(); Cartridge.Initialize(this); //Cartridge = new TVCMultiCart(); //Cartridge.Initialize(this); Reset(); }
/// <summary> /// Inserts cartridge /// </summary> /// <param name="in_cartridge"></param> public void InsertCartridge(ITVCCartridge in_cartridge) { // insert cartridge Cartridge = in_cartridge; }
/// <summary> /// Inserts cartridge /// </summary> /// <param name="in_cartridge"></param> public void InsertCartridge(ITVCCartridge in_cartridge) { }