there u are. now i have some idea. I think this way also works. why
dont I just check the flags and scan codes at the same time like u
suggest...
Code:
char far *kb = MK_FP(0,0x417);
:
:
/* keyboard isr */
void interrupt newhandler() {
// okay.. check ctrl flag and 'd' character pls....
if( (((*kb)&0x04)==0x04) && (inportb(0x60) == 0x20) ) {
gotcha! there you are ctrl+d :-)
else {
I dunno what to do here, but I think need to restore oldhandler
(*oldhandler)();
}
then send EOI
}
/* end interrupt */
what do you think Bubba, need some changes? btw, if I press other
key, that one will be printed on the console after the main program
quits.. dont figure out yet y this happens...