But on the two 64bit PC i own, they give (99) when getting century
Code: Select all
mov al,32h
out 70h,al
in al,71h
mov [century],al
Note in xp the the century is right, it only in my OS.
Code: Select all
mov al,32h
out 70h,al
in al,71h
mov [century],al
The rest should be right, as the other time and date values are all at standard locations (except for the "day of week" setting, which is at a standard location but often isn't set correctly).Dex4u wrote:Thank Brendan, but as the rest of the date info is right, i assumed i had the right location, i will investigate it some more.
Ha! Imagine that... some kid in the year 3000 discovers ancient OS on unused portion of Internet abandoned in year 2010. Hacks it, boots on his 10,000-core laptop with 300TB DDR-10-gazillion RAM, runs into Y3K bug... d'oh! Accidentally generates press release announcing discovery of "Linux 2.6.16.2" released some time in March of 3005...Brendan wrote: As long as someone upgrades the OS every 100 years this approach is flawless...