Scancodes/time
Posted: Tue Jun 29, 2004 11:00 pm
I have two really important questions, been stuck for a while now..
first of all.. how do I convert scancodes recieved from the keyboard (port 0x60) to "normal" characters... So I can write some nice stuff..
The second thing is, how do I get the system time? I want to do it in C (using DJGPP), mabye inline asm.. so far I´ve done:
out(0x70,0x4);
char hours = in(0x71);
out(0x70,0x2);
char minutes = in(0x71);
out(0x70,0x0);
char seconds = in(0x71);
But I need to know more and to convert that into local time
first of all.. how do I convert scancodes recieved from the keyboard (port 0x60) to "normal" characters... So I can write some nice stuff..
The second thing is, how do I get the system time? I want to do it in C (using DJGPP), mabye inline asm.. so far I´ve done:
out(0x70,0x4);
char hours = in(0x71);
out(0x70,0x2);
char minutes = in(0x71);
out(0x70,0x0);
char seconds = in(0x71);
But I need to know more and to convert that into local time