According to the Bochs' ioports.lst, there's a "TIMER.COM v1.2", which is the first RTC used in the IBM PC XT. Anyone knows where this program can be found?
Last edited by superfury on 2016-06-24, 17:20. Edited 1 time in total.
Currently have implemented it as an alternative to the usual CMOS in my emulation. After some fixing, it now displays the correct system time. For some reason, it refuses to update the clock(using the /S option?)?
I've implemented some kind of timings system, based on Unix Timerstamp(with added precision for microseconds) on top of my existing CMOS emulation(which now also handles the TIMER.COM v1.2 application): https://bitbucket.org/superfury/x86emu/src/8d … MOS.c?at=master
Anyone can tell me what's going wrong here? When I try to set the time to 1-1-2000 at 0:00AM it's setting strange Date/Time values, according to the logging?
100:00:52:15.02824: Updating register 04=00 200:00:52:15.03308: Setting time: 2016-0-6 24:0:9.000047 300:00:52:15.03316: Old divergeance: 00000000.00000000 400:00:52:15.03320: New divergeance: -0001070.-0000001 500:00:52:15.03456: Updating register 02=00 600:00:52:15.03464: Setting time: 2016-0-6 24:17:0.000047 700:00:52:15.03472: Old divergeance: -0001070.-0000001 800:00:52:15.03480: New divergeance: -0000540.-0000001 900:00:58:42.01064: Updating register 08=01 1000:00:58:42.01076: Setting time: 2016-0-1 24:17:9.000053 1100:00:58:42.01084: Old divergeance: -0000540.-0000001 1200:00:58:42.01092: New divergeance: -0000153.-0000001 1300:00:58:42.01236: Updating register 07=01 1400:00:58:42.01244: Setting time: 2016-0-1 1:17:9.000053 1500:00:58:42.01252: Old divergeance: -0000153.-0000001 1600:00:58:42.01260: New divergeance: 00001216.00000000 1700:00:58:42.01424: Updating register 09=00 1800:00:58:42.01432: Setting time: 2000-0-1 1:17:9.000053 1900:00:58:42.01440: Old divergeance: 00001216.00000000 2000:00:58:42.01448: New divergeance: 00000267.00000000 2100:00:58:46.03624: Updating register 06=06 2200:00:58:46.03636: Setting time: 2016-0-6 24:17:9.000053 2300:00:58:46.03644: Old divergeance: 00000267.00000000 2400:00:58:46.03652: New divergeance: 00000000.00000000