Diff for /np2/keystat.c between versions 1.7 and 1.9

version 1.7, 2004/03/28 19:50:25 version 1.9, 2004/03/30 08:48:46
Line 157  kstbl_err: Line 157  kstbl_err:
   
 // ----  // ----
   
   void keystat_ctrl(REG8 dat) {
   
           return;                                 // まだBIOSが未対応
   
           if (!keyctrl.reqparam) {
                   keyctrl.mode = dat;
                   switch(dat) {
   #if defined(SUPPORT_PC9801_119)
                           case 0x95:
   #endif
                           case 0x9c:
                           case 0x9d:
                                   keyctrl.reqparam = 1;
                                   keyboard_ctrl(0xfa);
                                   break;
   
   #if defined(SUPPORT_PC9801_119)
                           case 0x96:
                                   keyboard_ctrl(0xfa);
                                   keyboard_ctrl(0xa0);
                                   keyboard_ctrl(0x83);
                                   break;
   #endif
   
                           case 0x9f:
                                   keyboard_ctrl(0xfa);
                                   keyboard_ctrl(0xa0);
                                   keyboard_ctrl(0x80);
                                   break;
   
                           default:
                                   keyboard_ctrl(0xfc);
                                   break;
                   }
           }
           else {
                   switch(keyctrl.mode) {
   #if defined(SUPPORT_PC9801_119)
                           case 0x95:
                                   keyctrl.kbdtype = dat;
                                   break;
   #endif
                           case 0x9d:
                                   break;
   
                           case 0x9e:
                                   break;
                   }
                   keyctrl.reqparam = 0;
           }
   }
   
   
   // ----
   
 void keystat_down(const UINT8 *key, REG8 keys, REG8 ref) {  void keystat_down(const UINT8 *key, REG8 keys, REG8 ref) {
   
         UINT8   keydata;          UINT8   keydata;
Line 174  void keystat_down(const UINT8 *key, REG8 Line 229  void keystat_down(const UINT8 *key, REG8
                         keystat.ref[keycode] = ref;                          keystat.ref[keycode] = ref;
                 }                  }
                 else {                  else {
 #if defined(SUPPORT_PC9801119)  #if defined(SUPPORT_PC9801_119)
                         if ((keyctrl.kbdtype != 0x03) && (keycode >= 0x75)) {                          if ((keyctrl.kbdtype != 0x03) && (keycode >= 0x75)) {
                                 continue;                                  continue;
                         }                          }
Line 225  void keystat_up(const UINT8 *key, REG8 k Line 280  void keystat_up(const UINT8 *key, REG8 k
                         }                          }
                 }                  }
                 else {                  else {
 #if defined(SUPPORT_PC9801119)  #if defined(SUPPORT_PC9801_119)
                         if ((keyctrl.kbdtype != 0x03) && (keycode >= 0x75)) {                          if ((keyctrl.kbdtype != 0x03) && (keycode >= 0x75)) {
                                 continue;                                  continue;
                         }                          }

Removed from v.1.7  
changed lines
  Added in v.1.9


RetroPC.NET-CVS <cvs@retropc.net>