RTC: Difference between revisions

Jump to navigation Jump to search
No change in size ,  13 years ago
m
Fixed a typo in the code comment, "This turns on bit 6 of register D" to "This turns on bit 6 of register B"
[unchecked revision][unchecked revision]
No edit summary
m (Fixed a typo in the code comment, "This turns on bit 6 of register D" to "This turns on bit 6 of register B")
Line 33:
char prev=inportb(0x71); //read the current value of register B
outportb(0x70, 0x0B); //set the index again(a read will reset the index to register D)
outportb(0x71, prev | 0x40); //write the previous value or'd with 0x40. This turns on bit 6 of register DB
enable_ints();
</pre>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu