]> 4ch.mooo.com Git - 16.git/blobdiff - 16/modex16/dos_kb.c
chikyuu img added~
[16.git] / 16 / modex16 / dos_kb.c
old mode 100644 (file)
new mode 100755 (executable)
index b6eac79..dd92418
@@ -19,6 +19,7 @@ static void interrupt (far *oldkb)(void) = NULL; /* BIOS keyboard handler */
  * to be included.
  */
 //#define TESTING
+#define TESTING2
 
 /*****************NEW KEYBOARD 09h ISR***********************/
 void interrupt newkb(void){
@@ -35,8 +36,9 @@ void interrupt newkb(void){
        outp(0x61, qx);    /* Toggle acknowledge bit low */
 
        /* Interpret the scan code and set our flags */
-       #ifdef TESTING
+       #ifdef TESTING2
        //printf("%d[%d]\n",kee,key[kee]);
+       printf("\0"); // bug
        #endif
        if(kee & 0x80)
                key[kee & 0x7F] = 0; // a key is released
@@ -61,13 +63,13 @@ void setkb(int vq){
                oldkb = NULL;
                #ifdef TESTING
                /* Print the key heap */
-               /*printf("\n");
+               printf("\n");
                for(i=0; i<NUM_SCANCODES; i++){
                        if(i==NUM_SCANCODES/2) printf("================================\n");
                        printf("%03d[%d][%d]",i+1,key[i],kea[i]);
                        if(key[i]==1)printf("====");
                        printf(",\n");
-               }*/
+               }
                #endif
        }else if(vq == 1){ // initiation
                byte far *lock_key;