Previous 15994 Revisions Next

r3736 Thursday 4th December, 2008 at 08:44:24 UTC by Barry Rodewald
[X68000] Fixed issue with floppy disks not auto-booting when inserted while the insert disk message is on screen.
[src/mess/drivers]x68k.c

src/mess/drivers/x68k.c
r3735r3736
14121412       then access causes a bus error */
14131413   current_vector[2] = 0x02;  // bus error
14141414   current_irq_line = 2;
1415   cpu_set_input_line_and_vector(space->machine->cpu[0],2,ASSERT_LINE,current_vector[2]);
1415//   cpu_set_input_line_and_vector(space->machine->cpu[0],2,HOLD_LINE,current_vector[2]);
1416   if(input_port_read(space->machine, "options") & 0x02)
1417   {
1418      offset *= 2;
1419      if(ACCESSING_BITS_0_7)
1420         offset++;
1421      timer_set(ATTOTIME_IN_CYCLES(4,0), NULL, 0xbffffc+offset,x68k_fake_bus_error);
1422   }
14161423   return 0xff;
14171424}
14181425
r3735r3736
14221429       then access causes a bus error */
14231430   current_vector[2] = 0x02;  // bus error
14241431   current_irq_line = 2;
1425   cpu_set_input_line_and_vector(space->machine->cpu[0],2,ASSERT_LINE,current_vector[2]);
1432//   cpu_set_input_line_and_vector(space->machine->cpu[0],2,HOLD_LINE,current_vector[2]);
1433   if(input_port_read(space->machine, "options") & 0x02)
1434   {
1435      offset *= 2;
1436      if(ACCESSING_BITS_0_7)
1437         offset++;
1438      timer_set(ATTOTIME_IN_CYCLES(4,0), NULL, 0xbffffc+offset,x68k_fake_bus_error);
1439   }
14261440}
14271441
14281442static READ16_HANDLER( x68k_exp_r )
r3735r3736
19011915         current_vector[1] = 0x61;
19021916         sys.ioc.irqstatus |= 0x40;
19031917         current_irq_line = 1;
1904         cpu_set_input_line_and_vector(image->machine->cpu[0],1,ASSERT_LINE,current_vector[1]);  // Disk insert/eject interrupt
1918         cpu_set_input_line_and_vector(image->machine->cpu[0],1,HOLD_LINE,current_vector[1]);  // Disk insert/eject interrupt
19051919         logerror("IOC: Disk image inserted\n");
19061920      }
19071921      sys.fdc.disk_inserted[image_index_in_device(image)] = 1;
r3735r3736
19181932      current_vector[1] = 0x61;
19191933      sys.ioc.irqstatus |= 0x40;
19201934      current_irq_line = 1;
1921      cpu_set_input_line_and_vector(image->machine->cpu[0],1,ASSERT_LINE,current_vector[1]);  // Disk insert/eject interrupt
1935      cpu_set_input_line_and_vector(image->machine->cpu[0],1,HOLD_LINE,current_vector[1]);  // Disk insert/eject interrupt
19221936   }
19231937   sys.fdc.disk_inserted[image_index_in_device(image)] = 0;
19241938}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team