Diff for /np2/io/pit.c between versions 1.22 and 1.26

version 1.22, 2004/07/01 11:42:54 version 1.26, 2007/11/03 00:00:20
Line 126  void rs232ctimer(NEVENTITEM item) { Line 126  void rs232ctimer(NEVENTITEM item) {
   
         if (item->flag & NEVENT_SETEVENT) {          if (item->flag & NEVENT_SETEVENT) {
                 pitch = pit.ch + 2;                  pitch = pit.ch + 2;
                   if (pitch->flag & PIT_FLAG_I) {
                           pitch->flag &= ~PIT_FLAG_I;
                           rs232c_callback();
                   }
                 if ((pitch->ctrl & 0x0c) == 0x04) {                  if ((pitch->ctrl & 0x0c) == 0x04) {
                         // レートジェネレータ                          // レートジェネレータ
                         setrs232cevent(pitch->value, NEVENT_RELATIVE);                          setrs232cevent(pitch->value, NEVENT_RELATIVE);
                 }                  }
                   else {
                           setrs232cevent(0, NEVENT_RELATIVE);
                   }
         }          }
         rs232c_callback();  
 }  }
   
   
Line 337  static void IOOUTCALL pit_o73(UINT port, Line 343  static void IOOUTCALL pit_o73(UINT port,
                 return;                  return;
         }          }
         setbeepevent(pitch->value, NEVENT_ABSOLUTE);          setbeepevent(pitch->value, NEVENT_ABSOLUTE);
         if (!(pitch->ctrl & 0x0c)) {          beep_lheventset(1);                                                                                             // ver0.79
                 beep_lheventset(1);          if (pitch->ctrl & 0x0c) {
         }  
         else {  
                 beep_hzset(pitch->value);                  beep_hzset(pitch->value);
         }          }
         (void)port;          (void)port;
Line 355  static void IOOUTCALL pit_o75(UINT port, Line 359  static void IOOUTCALL pit_o75(UINT port,
         if (pit_setcount(pitch, dat)) {          if (pit_setcount(pitch, dat)) {
                 return;                  return;
         }          }
           pitch->flag |= PIT_FLAG_I;
         rs232c_open();          rs232c_open();
         setrs232cevent(pitch->value, NEVENT_ABSOLUTE);          setrs232cevent(pitch->value, NEVENT_ABSOLUTE);
         (void)port;          (void)port;
Line 407  static const IOOUT pito71[4] = { Line 412  static const IOOUT pito71[4] = {
 static const IOINP piti71[4] = {  static const IOINP piti71[4] = {
                                         pit_i71,        pit_i71,        pit_i71,        NULL};                                          pit_i71,        pit_i71,        pit_i71,        NULL};
   
 void itimer_reset(void) {  void itimer_reset(const NP2CFG *pConfig) {
   
         UINT16  beepcnt;          UINT16  beepcnt;
   
Line 428  void itimer_reset(void) { Line 433  void itimer_reset(void) {
         pit.ch[4].ch = 4;          pit.ch[4].ch = 4;
 #endif  #endif
         setsystimerevent(0, NEVENT_ABSOLUTE);          setsystimerevent(0, NEVENT_ABSOLUTE);
           beep_lheventset(1);                                                                                             // ver0.79
         beep_hzset(beepcnt);          beep_hzset(beepcnt);
   //      setrs232cevent(0, NEVENT_ABSOLUTE);
   
           (void)pConfig;
 }  }
   
 void itimer_bind(void) {  void itimer_bind(void) {

Removed from v.1.22  
changed lines
  Added in v.1.26


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