Previous 15994 Revisions Next

r3121 Sunday 31st August, 2008 at 03:09:05 UTC by Barry Rodewald
[X68000] Fixed non-MFP related interrupt generation. (0.127u1 regression)
[src/mess/drivers]x68k.c

src/mess/drivers/x68k.c
r3120r3121
647647            sys.mouse.irqactive = 1;
648648            current_vector[5] = 0x54;
649649            current_irq_line = 5;
650            cpunum_set_input_line_and_vector(machine, 0,5,HOLD_LINE,0x54);
650            cpunum_set_input_line_and_vector(machine, 0,5,ASSERT_LINE,0x54);
651651         }
652652      }
653653   }
r3120r3121
822822      sys.ioc.irqstatus |= 0x80;
823823      current_irq_line = 1;
824824      logerror("FDC: IRQ triggered\n");
825      cpunum_set_input_line_and_vector(Machine, 0,1,HOLD_LINE,current_vector[1]);
825      cpunum_set_input_line_and_vector(Machine, 0,1,ASSERT_LINE,current_vector[1]);
826826   }
827827}
828828
r3120r3121
15031503   static int prev;
15041504   if(prev == CLEAR_LINE && level == CLEAR_LINE)  // eliminate unnecessary calls to set the IRQ line for speed reasons
15051505      return;
1506   if((sys.ioc.irqstatus & 0xc0) != 0)  // if the FDC is busy, then we don't want to miss that IRQ
1507      return;
1506//   if((sys.ioc.irqstatus & 0xc0) != 0)  // if the FDC is busy, then we don't want to miss that IRQ
1507//      return;
15081508   cpunum_set_input_line(device->machine, 0, 6, level);
15091509   prev = level;
15101510}
r3120r3121
15551555      logerror("SYS: IRQ acknowledged (vector=0x%02x, line = %i)\n",current_vector[6],irqline);
15561556      return current_vector[6];
15571557   }
1558
1558   
15591559   cpunum_set_input_line_and_vector(machine, 0,irqline,CLEAR_LINE,current_vector[irqline]);
15601560   if(irqline == 1)  // IOSC
15611561   {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team