#include<stdio.h> #include<dos.h> #include #include void main() { int n; up:n=bioskey(0); outportb(0x378,0x00); if(n==4209) {exit(0);} /* Quit Key */ if(n==20273) {outportb(0x378,0x20);sleep(0.5);} /* FOR KEY 1 */ if(n==20530) {outportb(0x378,0x21);sleep(0.5);} /* FOR KEY 2 */ if(n==20787) {outportb(0x378,0x01);sleep(0.5);} /* FOR KEY 3 */ if(n==19252) {outportb(0x378,0x11);sleep(0.5);} /* FOR KEY 4 */ if(n==19766) {outportb(0x378,0x22);sleep(0.5);} /* FOR KEY 6 */ if(n==18231) {outportb(0x378,0x10);sleep(0.5);} /* FOR KEY 7 */ if(n==18488) {outportb(0x378,0x12);sleep(0.5);} /* FOR KEY 8 */ if(n==18745) {outportb(0x378,0x02);sleep(0.5);} /* FOR KEY 9 */ goto up; }