Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 /// <summary>
 /// Removes cartridge
 /// </summary>
 public void RemoveCartridge()
 {
     // restore original cartridge
     Cartridge = new TVCCartridge();
     Cartridge.Initialize(this);
 }