Added a bunch of new stuff no time to figure out what's what, No longer any compiler warnings

This commit is contained in:
2021-11-02 21:03:11 +01:00
parent b4b615ae97
commit c9b789ed7b
25 changed files with 427 additions and 55 deletions

View File

@ -49,6 +49,8 @@ void read_rtc() {
year = get_RTC_register(0x09);
if(century_register != 0) {
century = get_RTC_register(century_register);
} else {
century = 21;
}
do {
@ -141,7 +143,7 @@ void WriteTOCMOS(unsigned char array[])
asm("cli\n\t" // Clear interrupts
"mov al,index\n\t" // move index address
"out 0x70,al\n\t" // copy address to CMOS register
/* some kind of real delay here is probably best
// some kind of real delay here is probably best
"mov al,tvalue\n\t" // move value to al
"out 0x71,al\n\t" // write 1 byte to CMOS
"sti\n\\t" ); // Enable interrupts