Yeah, I've written a couple .sys files in my past, it's not that much different than writing an .exe, just a lot more painful to debug.jmetal88 wrote:OK, well, BIOS support was just a thought. I know I'd be able to come up with a small .COM or .EXE which could handle a clock myself, but if one of you wants to come up with a .SYS file for me (I'm still not that great at coding anything), for more transparent operation, that would be great!
If we can get the data out of the CC and into the machine even earlier by adding BIOS support for it, we will most certainly do that. I'm just not sure if we need any DOS hooks to get the date+time updated. If we do, then .sys, if not, then BIOS. I haven't looked at get/set date+time functions in years though. I wanna say that no DOS hooks are required...
And for Mike, the mod for moving the data into two 8 bit registers does so by swapping address bits 0 and 3.
This messes up the IDE shadow registers, but it's not that big of a deal.
Formerly, the shadow registers looked like this:
Data register: base+0 (this is a 16 bit port on AT+ machines, but not for us)
features: base+1
sector count: base+2
LBA Low:base+3
LBA Mid:base+4
LBA high:base+5
Device:base+6
status:base+7
data2:base+8 (for 8 bit machines to get the 2nd data byte)
Now things look like this:
Data0: base+0
data1: base+1
features: base+8
sector count: base+2
lba Low:base+a
lba mid:base+4
lba high:base+c
device:base+6
status:base+e