StrikerX3 / StrikeBox

StrikeBox - Original Xbox emulator
BSD 2-Clause "Simplified" License
52 stars 9 forks source link

Emulate the CMOS #14

Closed StrikerX3 closed 5 years ago

StrikerX3 commented 5 years ago

With most of the IDE emulation implemented, we're now booting into the Dashboard. The system does not load game discs yet because it thinks that the clock settings are incorrect, due to the lack of CMOS emulation, and force boots into the dashboard to fix the settings.

XQEMU uses the MC146818 RTC emulator with some modifications (header, registers, source). Here is the chip's datasheet.

StrikerX3 commented 5 years ago

Enough of the CMOS has been implemented to make the kernel happy for now. Doesn't look like the kernel ever activates the interrupt line of the chip, so we'll leave IRQ handling out.

If we ever find out that the kernel does make use of CMOS IRQs, we'll revisit that functionality later. For now, the implementation satisfies the needs of the emulator.