Beispiel #1
0
        public RobotDevices()
        {
            var now        = DateTime.UtcNow;
            var timeOffset = (now.AddYears(152) - now).TotalSeconds;

            m_clock   = new ClockDevice("RoboSoft Basic Realtime Clock", timeOffset);
            m_cpu     = new LuaCPUDevice("RoboSoft Basic Lua 5.3 CPU");
            m_rom     = new ROMDevice("RoboSoft BIOS ROM", new AssetMount("rom", Assets.Sources.Where(source => source.Mod == null), "arcade/rom"));
            m_gpu     = new GPUDevice("RoboSoft Basic GPU");
            m_display = new DisplayDevice("RoboSoft Basic Monochrome Display", DISPLAY_WIDTH, DISPLAY_HEIGHT, new Palette(new uint[] {
                0x000000ff, 0xffffffff
            }));
            m_speaker = new SpeakerDevice("RoboSoft Basic Internal Speaker", SPEAKER_CHANNELS);

            var hddPath = Path.Combine(App.SavePath, "arcade/hdd");

            m_hardDrive = new HardDriveDevice("RoboSoft Basic Hard Drive", new FileMount("hdd", hddPath, HDD_CAPACITY, false));
            m_diskDrive = new DiskDriveDevice("RoboSoft Basic Disk Drive");
            m_keyboard  = new KeyboardDevice("RoboSoft Basic Keyboard");
            m_gamepad   = new GamepadDevice("RoboSoft Basic 2-Button Gamepad", 2, 2);
            m_score     = new ScoreDevice("RoboSoft Basic Highscore RAM");
        }
Beispiel #2
0
 public SystemAPI(Computer computer, LuaCPUDevice cpu) : base("system")
 {
     m_computer      = computer;
     m_cpu           = cpu;
     m_deviceMethods = new Dictionary <Device, DeviceMethodCollection>();
 }
Beispiel #3
0
 public OSAPI(Computer computer, LuaCPUDevice cpu, FileSystem fileSystem) : base("os")
 {
     m_computer   = computer;
     m_cpu        = cpu;
     m_fileSystem = fileSystem;
 }