src/mess/drivers/x68k.c
| r3735 | r3736 | |
| 1412 | 1412 | then access causes a bus error */ |
| 1413 | 1413 | current_vector[2] = 0x02; // bus error |
| 1414 | 1414 | 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 | } |
| 1416 | 1423 | return 0xff; |
| 1417 | 1424 | } |
| 1418 | 1425 | |
| r3735 | r3736 | |
| 1422 | 1429 | then access causes a bus error */ |
| 1423 | 1430 | current_vector[2] = 0x02; // bus error |
| 1424 | 1431 | 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 | } |
| 1426 | 1440 | } |
| 1427 | 1441 | |
| 1428 | 1442 | static READ16_HANDLER( x68k_exp_r ) |
| r3735 | r3736 | |
| 1901 | 1915 | current_vector[1] = 0x61; |
| 1902 | 1916 | sys.ioc.irqstatus |= 0x40; |
| 1903 | 1917 | 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 |
| 1905 | 1919 | logerror("IOC: Disk image inserted\n"); |
| 1906 | 1920 | } |
| 1907 | 1921 | sys.fdc.disk_inserted[image_index_in_device(image)] = 1; |
| r3735 | r3736 | |
| 1918 | 1932 | current_vector[1] = 0x61; |
| 1919 | 1933 | sys.ioc.irqstatus |= 0x40; |
| 1920 | 1934 | 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 |
| 1922 | 1936 | } |
| 1923 | 1937 | sys.fdc.disk_inserted[image_index_in_device(image)] = 0; |
| 1924 | 1938 | } |