Exemplo n.º 1
0
		// framework
		public C64(CoreComm comm, GameInfo game, byte[] rom, string romextension)
		{
			inputFileInfo = new InputFileInfo();
			inputFileInfo.Data = rom;
			inputFileInfo.Extension = romextension;
			CoreComm = comm;
			Init(Region.PAL);
			cyclesPerFrame = board.vic.CyclesPerFrame;
			CoreComm.UsesDriveLed = true;
			SetupMemoryDomains();
			HardReset();
		}
Exemplo n.º 2
0
 // framework
 public C64(CoreComm comm, GameInfo game, byte[] rom, string romextension)
 {
     inputFileInfo           = new InputFileInfo();
     inputFileInfo.Data      = rom;
     inputFileInfo.Extension = romextension;
     CoreComm = comm;
     Init(Region.PAL);
     cyclesPerFrame        = board.vic.CyclesPerFrame;
     CoreComm.UsesDriveLed = true;
     SetupMemoryDomains();
     HardReset();
 }
Exemplo n.º 3
0
        // framework
        public C64(CoreComm comm, GameInfo game, byte[] rom, string romextension)
        {
            ServiceProvider = new BasicServiceProvider(this);
            InputCallbacks  = new InputCallbackSystem();

            inputFileInfo           = new InputFileInfo();
            inputFileInfo.Data      = rom;
            inputFileInfo.Extension = romextension;
            CoreComm = comm;
            Init(Region.PAL);
            cyclesPerFrame = board.vic.CyclesPerFrame;
            SetupMemoryDomains();
            HardReset();

            (ServiceProvider as BasicServiceProvider).Register <IVideoProvider>(board.vic);
        }
Exemplo n.º 4
0
        // framework
        public C64(CoreComm comm, GameInfo game, byte[] rom, string romextension)
        {
            ServiceProvider = new BasicServiceProvider(this);
            InputCallbacks = new InputCallbackSystem();

            inputFileInfo = new InputFileInfo();
            inputFileInfo.Data = rom;
            inputFileInfo.Extension = romextension;
            CoreComm = comm;
            Init(Region.PAL);
            cyclesPerFrame = board.vic.CyclesPerFrame;
            SetupMemoryDomains();
            HardReset();

            (ServiceProvider as BasicServiceProvider).Register<IVideoProvider>(board.vic);
        }
Exemplo n.º 5
0
        // framework
        public C64(CoreComm comm, GameInfo game, byte[] rom, string romextension, object Settings, object SyncSettings)
        {
            PutSyncSettings((C64SyncSettings)SyncSettings ?? new C64SyncSettings());
            PutSettings((C64Settings)Settings ?? new C64Settings());

            ServiceProvider = new BasicServiceProvider(this);
            InputCallbacks  = new InputCallbackSystem();

            inputFileInfo           = new InputFileInfo();
            inputFileInfo.Data      = rom;
            inputFileInfo.Extension = romextension;
            CoreComm = comm;
            Init(this.SyncSettings.vicType);
            cyclesPerFrame = board.vic.CyclesPerFrame;
            SetupMemoryDomains();
            MemoryCallbacks = new MemoryCallbackSystem();
            HardReset();

            (ServiceProvider as BasicServiceProvider).Register <IVideoProvider>(board.vic);
        }
Exemplo n.º 6
0
        // framework
        public C64(CoreComm comm, GameInfo game, byte[] rom, string romextension, object settings, object syncSettings)
        {
            PutSyncSettings((C64SyncSettings)syncSettings ?? new C64SyncSettings());
            PutSettings((C64Settings)settings ?? new C64Settings());

            ServiceProvider = new BasicServiceProvider(this);
            InputCallbacks  = new InputCallbackSystem();

            _inputFileInfo = new InputFileInfo
            {
                Data      = rom,
                Extension = romextension
            };

            CoreComm = comm;
            Init(SyncSettings.VicType, Settings.BorderType, SyncSettings.SidType, SyncSettings.TapeDriveType, SyncSettings.DiskDriveType);
            _cyclesPerFrame = _board.Vic.CyclesPerFrame;
            SetupMemoryDomains(_board.DiskDrive != null);
            _memoryCallbacks = new MemoryCallbackSystem();
            HardReset();

            switch (SyncSettings.VicType)
            {
            case VicType.Ntsc:
            case VicType.Drean:
            case VicType.NtscOld:
                Region = DisplayType.NTSC;
                break;

            case VicType.Pal:
                Region = DisplayType.PAL;
                break;
            }

            ((BasicServiceProvider)ServiceProvider).Register <IVideoProvider>(_board.Vic);
            ((BasicServiceProvider)ServiceProvider).Register <IDriveLight>(_board.Serial);
        }
Exemplo n.º 7
0
		// framework
		public C64(CoreComm comm, GameInfo game, byte[] rom, string romextension, object settings, object syncSettings)
		{
			PutSyncSettings((C64SyncSettings)syncSettings ?? new C64SyncSettings());
			PutSettings((C64Settings)settings ?? new C64Settings());

			ServiceProvider = new BasicServiceProvider(this);
			InputCallbacks = new InputCallbackSystem();

		    _inputFileInfo = new InputFileInfo
		    {
		        Data = rom,
		        Extension = romextension
		    };

		    CoreComm = comm;
			Init(SyncSettings.VicType, Settings.BorderType, SyncSettings.SidType, SyncSettings.TapeDriveType, SyncSettings.DiskDriveType);
			_cyclesPerFrame = _board.Vic.CyclesPerFrame;
			SetupMemoryDomains(_board.DiskDrive != null);
            _memoryCallbacks = new MemoryCallbackSystem();
			HardReset();

		    switch (SyncSettings.VicType)
		    {
		        case VicType.Ntsc:
                case VicType.Drean:
                case VicType.NtscOld:
                    Region = DisplayType.NTSC;
		            break;
                case VicType.Pal:
                    Region = DisplayType.PAL;
		            break;
		    }

			((BasicServiceProvider) ServiceProvider).Register<IVideoProvider>(_board.Vic);
            ((BasicServiceProvider) ServiceProvider).Register<IDriveLight>(_board.Serial);
        }