Diff for /np2/io/pit.c between versions 1.10 and 1.11

version 1.10, 2003/12/08 00:55:32 version 1.11, 2003/12/11 21:57:38
Line 53  void systimer(NEVENTITEM item) { Line 53  void systimer(NEVENTITEM item) {
                         // レートジェネレータ                          // レートジェネレータ
                         pit.intr[0] = 1;                          pit.intr[0] = 1;
                         setsystimerevent(NEVENT_RELATIVE);                          setsystimerevent(NEVENT_RELATIVE);
                           TRACEOUT(("intr-next"));
                 }                  }
                 else {                  else {
                         nevent_set(NEVENT_ITIMER, pc.multiple << 16,                          nevent_set(NEVENT_ITIMER, pc.multiple << 16,
Line 256  REG8 pit_getcount(int ch) { Line 257  REG8 pit_getcount(int ch) {
 // system timer  // system timer
 static void IOOUTCALL pit_o71(UINT port, REG8 dat) {  static void IOOUTCALL pit_o71(UINT port, REG8 dat) {
   
   //      TRACEOUT(("pic o71: %x", dat));
         if (pit_setcount(0, dat)) {          if (pit_setcount(0, dat)) {
                 return;                  return;
         }          }
Line 338  void itimer_reset(void) { Line 340  void itimer_reset(void) {
         else {          else {
                 pit.value[1] = 1229;                    // 5MHz                  pit.value[1] = 1229;                    // 5MHz
         }          }
           pit.intr[0] = 1;
         pit.mode[0] = 0x30;          pit.mode[0] = 0x30;
         pit.mode[1] = 0x56;          pit.mode[1] = 0x56;
         pit.mode[2] = 0xb6;          pit.mode[2] = 0xb6;

Removed from v.1.10  
changed lines
  Added in v.1.11


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