Anonymous user
RTC: Difference between revisions
Jump to navigation
Jump to search
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
enable_ints();
</pre>
|