Diff for /np2/io/pic.c between versions 1.2 and 1.4

version 1.2, 2003/10/21 11:22:05 version 1.4, 2003/11/12 20:02:54
Line 243  void pic_setirq(BYTE irq) { Line 243  void pic_setirq(BYTE irq) {
                         if (bit & PIC_SYSTEMTIMER) {                          if (bit & PIC_SYSTEMTIMER) {
                                 if ((pit.mode[0] & 0x0c) == 0x04) {                                  if ((pit.mode[0] & 0x0c) == 0x04) {
                                         SINT32 cnt;                                                                             // ver0.29                                          SINT32 cnt;                                                                             // ver0.29
                                         if (pit.value[0].w > 8) {                                          if (pit.value[0] > 8) {
                                                 cnt = pc.multiple * pit.value[0].w;                                                  cnt = pc.multiple * pit.value[0];
                                                 cnt >>= 2;                                                  cnt >>= 2;
                                         }                                          }
                                         else {                                          else {
Line 291  static void IOOUTCALL pic_o00(UINT port, Line 291  static void IOOUTCALL pic_o00(UINT port,
         PICITEM         picp;          PICITEM         picp;
         BYTE            level;          BYTE            level;
   
   //      TRACEOUT(("pic %x %x", port, dat));
         picp = &pic.pi[(port >> 3) & 1];          picp = &pic.pi[(port >> 3) & 1];
         picp->writeicw = 0;          picp->writeicw = 0;
         switch(dat & 0x18) {          switch(dat & 0x18) {
Line 340  static void IOOUTCALL pic_o02(UINT port, Line 341  static void IOOUTCALL pic_o02(UINT port,
   
         PICITEM         picp;          PICITEM         picp;
   
   //      TRACEOUT(("pic %x %x", port, dat));
         picp = &pic.pi[(port >> 3) & 1];          picp = &pic.pi[(port >> 3) & 1];
         if (!picp->writeicw) {          if (!picp->writeicw) {
                 picp->imr = dat;                  picp->imr = dat;

Removed from v.1.2  
changed lines
  Added in v.1.4


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