src/emu/cpu/i86/instr86.c
| r9860 | r9861 | |
| 10 | 10 | * timing value should move to separate array |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | /* |
| 14 | PHS - 2010-12-29 |
| 15 | |
| 16 | Moved several instruction stubs so that they are compiled separately for |
| 17 | the 8086 and 80186. The instructions affected are : |
| 18 | |
| 19 | _pop_ss, _es, _cs, _ss, _ds, _mov_sregw and _sti |
| 20 | |
| 21 | This is because they call the next instruction directly as it cannot be |
| 22 | interrupted. If they are not compiled separately when executing on an |
| 23 | 80186, the wrong set of instructions are used (the 8086 set). This has |
| 24 | the serious effect of ignoring the next instruction, as invalid, *IF* |
| 25 | it is an 80186 specific instruction. |
| 26 | |
| 27 | */ |
| 28 | |
| 13 | 29 | #undef ICOUNT |
| 14 | 30 | |
| 15 | 31 | #define ICOUNT cpustate->icount |
| r9860 | r9861 | |
| 821 | 837 | ICOUNT -= timing.push_seg; |
| 822 | 838 | } |
| 823 | 839 | |
| 824 | | static void PREFIX86(_pop_ss)(i8086_state *cpustate) /* Opcode 0x17 */ |
| 825 | | { |
| 826 | | #ifdef I80286 |
| 827 | | UINT16 tmp; |
| 828 | | POP(tmp); |
| 829 | | i80286_data_descriptor(cpustate, SS, tmp); |
| 830 | | #else |
| 831 | | POP(cpustate->sregs[SS]); |
| 832 | | cpustate->base[SS] = SegBase(SS); |
| 833 | | #endif |
| 834 | | ICOUNT -= timing.pop_seg; |
| 835 | | PREFIX(_instruction)[FETCHOP](cpustate); /* no interrupt before next instruction */ |
| 836 | | } |
| 837 | | |
| 838 | 840 | static void PREFIX86(_sbb_br8)(i8086_state *cpustate) /* Opcode 0x18 */ |
| 839 | 841 | { |
| 840 | 842 | DEF_br8(dst,src); |
| r9860 | r9861 | |
| 956 | 958 | cpustate->regs.w[AX]=dst; |
| 957 | 959 | } |
| 958 | 960 | |
| 959 | | static void PREFIX86(_es)(i8086_state *cpustate) /* Opcode 0x26 */ |
| 960 | | { |
| 961 | | cpustate->seg_prefix = TRUE; |
| 962 | | cpustate->prefix_seg = ES; |
| 963 | | ICOUNT -= timing.override; |
| 964 | | PREFIX(_instruction)[FETCHOP](cpustate); |
| 965 | | } |
| 966 | | |
| 967 | 961 | static void PREFIX86(_daa)(i8086_state *cpustate) /* Opcode 0x27 */ |
| 968 | 962 | { |
| 969 | 963 | if (AF || ((cpustate->regs.b[AL] & 0xf) > 9)) |
| r9860 | r9861 | |
| 1032 | 1026 | cpustate->regs.w[AX]=dst; |
| 1033 | 1027 | } |
| 1034 | 1028 | |
| 1035 | | static void PREFIX86(_cs)(i8086_state *cpustate) /* Opcode 0x2e */ |
| 1036 | | { |
| 1037 | | cpustate->seg_prefix = TRUE; |
| 1038 | | cpustate->prefix_seg = CS; |
| 1039 | | ICOUNT -= timing.override; |
| 1040 | | PREFIX(_instruction)[FETCHOP](cpustate); |
| 1041 | | } |
| 1042 | | |
| 1043 | 1029 | static void PREFIX86(_das)(i8086_state *cpustate) /* Opcode 0x2f */ |
| 1044 | 1030 | { |
| 1045 | 1031 | UINT8 tmpAL=cpustate->regs.b[AL]; |
| r9860 | r9861 | |
| 1109 | 1095 | cpustate->regs.w[AX]=dst; |
| 1110 | 1096 | } |
| 1111 | 1097 | |
| 1112 | | static void PREFIX86(_ss)(i8086_state *cpustate) /* Opcode 0x36 */ |
| 1113 | | { |
| 1114 | | cpustate->seg_prefix = TRUE; |
| 1115 | | cpustate->prefix_seg = SS; |
| 1116 | | ICOUNT -= timing.override; |
| 1117 | | PREFIX(_instruction)[FETCHOP](cpustate); |
| 1118 | | } |
| 1119 | | |
| 1120 | 1098 | static void PREFIX86(_aaa)(i8086_state *cpustate) /* Opcode 0x37 */ |
| 1121 | 1099 | { |
| 1122 | 1100 | UINT8 ALcarry=1; |
| r9860 | r9861 | |
| 1180 | 1158 | SUBW(dst,src); |
| 1181 | 1159 | } |
| 1182 | 1160 | |
| 1183 | | static void PREFIX86(_ds)(i8086_state *cpustate) /* Opcode 0x3e */ |
| 1184 | | { |
| 1185 | | cpustate->seg_prefix = TRUE; |
| 1186 | | cpustate->prefix_seg = DS; |
| 1187 | | ICOUNT -= timing.override; |
| 1188 | | PREFIX(_instruction)[FETCHOP](cpustate); |
| 1189 | | } |
| 1190 | | |
| 1191 | 1161 | static void PREFIX86(_aas)(i8086_state *cpustate) /* Opcode 0x3f */ |
| 1192 | 1162 | { |
| 1193 | 1163 | UINT8 ALcarry=1; |
| r9860 | r9861 | |
| 1880 | 1850 | RegWord(ModRM)=cpustate->eo; /* HJB 12/13/98 effective offset (no segment part) */ |
| 1881 | 1851 | } |
| 1882 | 1852 | |
| 1883 | | static void PREFIX86(_mov_sregw)(i8086_state *cpustate) /* Opcode 0x8e */ |
| 1884 | | { |
| 1885 | | unsigned ModRM = FETCH; |
| 1886 | | WORD src = GetRMWord(ModRM); |
| 1887 | | |
| 1888 | | ICOUNT -= (ModRM >= 0xc0) ? timing.mov_sr : timing.mov_sm; |
| 1889 | | #ifdef I80286 |
| 1890 | | switch (ModRM & 0x38) |
| 1891 | | { |
| 1892 | | case 0x00: /* mov es,ew */ |
| 1893 | | i80286_data_descriptor(cpustate,ES,src); |
| 1894 | | break; |
| 1895 | | case 0x18: /* mov ds,ew */ |
| 1896 | | i80286_data_descriptor(cpustate,DS,src); |
| 1897 | | break; |
| 1898 | | case 0x10: /* mov ss,ew */ |
| 1899 | | i80286_data_descriptor(cpustate,SS,src); |
| 1900 | | PREFIX(_instruction)[FETCHOP](cpustate); |
| 1901 | | break; |
| 1902 | | case 0x08: /* mov cs,ew */ |
| 1903 | | break; /* doesn't do a jump far */ |
| 1904 | | } |
| 1905 | | #else |
| 1906 | | switch (ModRM & 0x38) |
| 1907 | | { |
| 1908 | | case 0x00: /* mov es,ew */ |
| 1909 | | cpustate->sregs[ES] = src; |
| 1910 | | cpustate->base[ES] = SegBase(ES); |
| 1911 | | break; |
| 1912 | | case 0x18: /* mov ds,ew */ |
| 1913 | | cpustate->sregs[DS] = src; |
| 1914 | | cpustate->base[DS] = SegBase(DS); |
| 1915 | | break; |
| 1916 | | case 0x10: /* mov ss,ew */ |
| 1917 | | cpustate->sregs[SS] = src; |
| 1918 | | cpustate->base[SS] = SegBase(SS); /* no interrupt allowed before next instr */ |
| 1919 | | PREFIX(_instruction)[FETCHOP](cpustate); |
| 1920 | | break; |
| 1921 | | case 0x08: /* mov cs,ew */ |
| 1922 | | break; /* doesn't do a jump far */ |
| 1923 | | } |
| 1924 | | #endif |
| 1925 | | } |
| 1926 | | |
| 1927 | 1853 | static void PREFIX86(_popw)(i8086_state *cpustate) /* Opcode 0x8f */ |
| 1928 | 1854 | { |
| 1929 | 1855 | unsigned ModRM = FETCH; |
| r9860 | r9861 | |
| 2722 | 2648 | } |
| 2723 | 2649 | #endif |
| 2724 | 2650 | |
| 2651 | static void PREFIX(_pop_ss)(i8086_state *cpustate) /* Opcode 0x17 */ |
| 2652 | { |
| 2653 | #ifdef I80286 |
| 2654 | UINT16 tmp; |
| 2655 | POP(tmp); |
| 2656 | i80286_data_descriptor(cpustate, SS, tmp); |
| 2657 | #else |
| 2658 | POP(cpustate->sregs[SS]); |
| 2659 | cpustate->base[SS] = SegBase(SS); |
| 2660 | #endif |
| 2661 | ICOUNT -= timing.pop_seg; |
| 2662 | PREFIX(_instruction)[FETCHOP](cpustate); /* no interrupt before next instruction */ |
| 2663 | } |
| 2664 | |
| 2665 | static void PREFIX(_es)(i8086_state *cpustate) /* Opcode 0x26 */ |
| 2666 | { |
| 2667 | cpustate->seg_prefix = TRUE; |
| 2668 | cpustate->prefix_seg = ES; |
| 2669 | ICOUNT -= timing.override; |
| 2670 | PREFIX(_instruction)[FETCHOP](cpustate); |
| 2671 | } |
| 2672 | |
| 2673 | static void PREFIX(_cs)(i8086_state *cpustate) /* Opcode 0x2e */ |
| 2674 | { |
| 2675 | cpustate->seg_prefix = TRUE; |
| 2676 | cpustate->prefix_seg = CS; |
| 2677 | ICOUNT -= timing.override; |
| 2678 | PREFIX(_instruction)[FETCHOP](cpustate); |
| 2679 | } |
| 2680 | |
| 2681 | static void PREFIX(_ss)(i8086_state *cpustate) /* Opcode 0x36 */ |
| 2682 | { |
| 2683 | cpustate->seg_prefix = TRUE; |
| 2684 | cpustate->prefix_seg = SS; |
| 2685 | ICOUNT -= timing.override; |
| 2686 | PREFIX(_instruction)[FETCHOP](cpustate); |
| 2687 | } |
| 2688 | |
| 2689 | static void PREFIX(_ds)(i8086_state *cpustate) /* Opcode 0x3e */ |
| 2690 | { |
| 2691 | cpustate->seg_prefix = TRUE; |
| 2692 | cpustate->prefix_seg = DS; |
| 2693 | ICOUNT -= timing.override; |
| 2694 | PREFIX(_instruction)[FETCHOP](cpustate); |
| 2695 | } |
| 2696 | |
| 2697 | static void PREFIX(_mov_sregw)(i8086_state *cpustate) /* Opcode 0x8e */ |
| 2698 | { |
| 2699 | unsigned ModRM = FETCH; |
| 2700 | WORD src = GetRMWord(ModRM); |
| 2701 | |
| 2702 | ICOUNT -= (ModRM >= 0xc0) ? timing.mov_sr : timing.mov_sm; |
| 2703 | #ifdef I80286 |
| 2704 | switch (ModRM & 0x38) |
| 2705 | { |
| 2706 | case 0x00: /* mov es,ew */ |
| 2707 | i80286_data_descriptor(cpustate,ES,src); |
| 2708 | break; |
| 2709 | case 0x18: /* mov ds,ew */ |
| 2710 | i80286_data_descriptor(cpustate,DS,src); |
| 2711 | break; |
| 2712 | case 0x10: /* mov ss,ew */ |
| 2713 | i80286_data_descriptor(cpustate,SS,src); |
| 2714 | PREFIX(_instruction)[FETCHOP](cpustate); |
| 2715 | break; |
| 2716 | case 0x08: /* mov cs,ew */ |
| 2717 | break; /* doesn't do a jump far */ |
| 2718 | } |
| 2719 | #else |
| 2720 | switch (ModRM & 0x38) |
| 2721 | { |
| 2722 | case 0x00: /* mov es,ew */ |
| 2723 | cpustate->sregs[ES] = src; |
| 2724 | cpustate->base[ES] = SegBase(ES); |
| 2725 | break; |
| 2726 | case 0x18: /* mov ds,ew */ |
| 2727 | cpustate->sregs[DS] = src; |
| 2728 | cpustate->base[DS] = SegBase(DS); |
| 2729 | break; |
| 2730 | case 0x10: /* mov ss,ew */ |
| 2731 | cpustate->sregs[SS] = src; |
| 2732 | cpustate->base[SS] = SegBase(SS); /* no interrupt allowed before next instr */ |
| 2733 | PREFIX(_instruction)[FETCHOP](cpustate); |
| 2734 | break; |
| 2735 | case 0x08: /* mov cs,ew */ |
| 2736 | break; /* doesn't do a jump far */ |
| 2737 | } |
| 2738 | #endif |
| 2739 | } |
| 2740 | |
| 2725 | 2741 | static void PREFIX(_repne)(i8086_state *cpustate) /* Opcode 0xf2 */ |
| 2726 | 2742 | { |
| 2727 | 2743 | PREFIX(rep)(cpustate, 0); |
| r9860 | r9861 | |
| 2732 | 2748 | PREFIX(rep)(cpustate, 1); |
| 2733 | 2749 | } |
| 2734 | 2750 | |
| 2751 | static void PREFIX(_sti)(i8086_state *cpustate) /* Opcode 0xfb */ |
| 2752 | { |
| 2753 | ICOUNT -= timing.flag_ops; |
| 2754 | SetIF(1); |
| 2755 | PREFIX(_instruction)[FETCHOP](cpustate); /* no interrupt before next instruction */ |
| 2756 | |
| 2757 | /* if an interrupt is pending, signal an interrupt */ |
| 2758 | if (cpustate->irq_state) |
| 2759 | PREFIX86(_interrupt)(cpustate, (UINT32)-1); |
| 2760 | } |
| 2761 | |
| 2735 | 2762 | #ifndef I80186 |
| 2736 | 2763 | static void PREFIX86(_hlt)(i8086_state *cpustate) /* Opcode 0xf4 */ |
| 2737 | 2764 | { |
| r9860 | r9861 | |
| 3022 | 3049 | SetIF(0); |
| 3023 | 3050 | } |
| 3024 | 3051 | |
| 3025 | | static void PREFIX86(_sti)(i8086_state *cpustate) /* Opcode 0xfb */ |
| 3026 | | { |
| 3027 | | ICOUNT -= timing.flag_ops; |
| 3028 | | SetIF(1); |
| 3029 | | PREFIX(_instruction)[FETCHOP](cpustate); /* no interrupt before next instruction */ |
| 3030 | | |
| 3031 | | /* if an interrupt is pending, signal an interrupt */ |
| 3032 | | if (cpustate->irq_state) |
| 3033 | | PREFIX(_interrupt)(cpustate, (UINT32)-1); |
| 3034 | | } |
| 3035 | | |
| 3036 | 3052 | static void PREFIX86(_cld)(i8086_state *cpustate) /* Opcode 0xfc */ |
| 3037 | 3053 | { |
| 3038 | 3054 | ICOUNT -= timing.flag_ops; |
src/emu/cpu/i86/table186.h
| r9860 | r9861 | |
| 23 | 23 | PREFIX86(_adc_ald8), /* 0x14 */ |
| 24 | 24 | PREFIX86(_adc_axd16), /* 0x15 */ |
| 25 | 25 | PREFIX86(_push_ss), /* 0x16 */ |
| 26 | | PREFIX86(_pop_ss), /* 0x17 */ |
| 26 | PREFIX186(_pop_ss), /* 0x17 */ |
| 27 | 27 | PREFIX86(_sbb_br8), /* 0x18 */ |
| 28 | 28 | PREFIX86(_sbb_wr16), /* 0x19 */ |
| 29 | 29 | PREFIX86(_sbb_r8b), /* 0x1a */ |
| r9860 | r9861 | |
| 38 | 38 | PREFIX86(_and_r16w), /* 0x23 */ |
| 39 | 39 | PREFIX86(_and_ald8), /* 0x24 */ |
| 40 | 40 | PREFIX86(_and_axd16), /* 0x25 */ |
| 41 | | PREFIX86(_es), /* 0x26 */ |
| 41 | PREFIX186(_es), /* 0x26 */ |
| 42 | 42 | PREFIX86(_daa), /* 0x27 */ |
| 43 | 43 | PREFIX86(_sub_br8), /* 0x28 */ |
| 44 | 44 | PREFIX86(_sub_wr16), /* 0x29 */ |
| r9860 | r9861 | |
| 46 | 46 | PREFIX86(_sub_r16w), /* 0x2b */ |
| 47 | 47 | PREFIX86(_sub_ald8), /* 0x2c */ |
| 48 | 48 | PREFIX86(_sub_axd16), /* 0x2d */ |
| 49 | | PREFIX86(_cs), /* 0x2e */ |
| 50 | | PREFIX86(_das), /* 0x2f */ |
| 49 | PREFIX186(_cs), /* 0x2e */ |
| 50 | PREFIX86(_das), /* 0x2f */ |
| 51 | 51 | PREFIX86(_xor_br8), /* 0x30 */ |
| 52 | 52 | PREFIX86(_xor_wr16), /* 0x31 */ |
| 53 | 53 | PREFIX86(_xor_r8b), /* 0x32 */ |
| 54 | 54 | PREFIX86(_xor_r16w), /* 0x33 */ |
| 55 | 55 | PREFIX86(_xor_ald8), /* 0x34 */ |
| 56 | 56 | PREFIX86(_xor_axd16), /* 0x35 */ |
| 57 | | PREFIX86(_ss), /* 0x36 */ |
| 58 | | PREFIX86(_aaa), /* 0x37 */ |
| 57 | PREFIX186(_ss), /* 0x36 */ |
| 58 | PREFIX86(_aaa), /* 0x37 */ |
| 59 | 59 | PREFIX86(_cmp_br8), /* 0x38 */ |
| 60 | 60 | PREFIX86(_cmp_wr16), /* 0x39 */ |
| 61 | 61 | PREFIX86(_cmp_r8b), /* 0x3a */ |
| 62 | 62 | PREFIX86(_cmp_r16w), /* 0x3b */ |
| 63 | 63 | PREFIX86(_cmp_ald8), /* 0x3c */ |
| 64 | 64 | PREFIX86(_cmp_axd16), /* 0x3d */ |
| 65 | | PREFIX86(_ds), /* 0x3e */ |
| 66 | | PREFIX86(_aas), /* 0x3f */ |
| 65 | PREFIX186(_ds), /* 0x3e */ |
| 66 | PREFIX86(_aas), /* 0x3f */ |
| 67 | 67 | PREFIX86(_inc_ax), /* 0x40 */ |
| 68 | 68 | PREFIX86(_inc_cx), /* 0x41 */ |
| 69 | 69 | PREFIX86(_inc_dx), /* 0x42 */ |
| r9860 | r9861 | |
| 142 | 142 | PREFIX86(_mov_r16w), /* 0x8b */ |
| 143 | 143 | PREFIX86(_mov_wsreg), /* 0x8c */ |
| 144 | 144 | PREFIX86(_lea), /* 0x8d */ |
| 145 | | PREFIX86(_mov_sregw), /* 0x8e */ |
| 145 | PREFIX186(_mov_sregw), /* 0x8e */ |
| 146 | 146 | PREFIX86(_popw), /* 0x8f */ |
| 147 | 147 | PREFIX86(_nop), /* 0x90 */ |
| 148 | 148 | PREFIX86(_xchg_axcx), /* 0x91 */ |
| r9860 | r9861 | |
| 251 | 251 | PREFIX86(_clc), /* 0xf8 */ |
| 252 | 252 | PREFIX86(_stc), /* 0xf9 */ |
| 253 | 253 | PREFIX86(_cli), /* 0xfa */ |
| 254 | | PREFIX86(_sti), /* 0xfb */ |
| 254 | PREFIX186(_sti), /* 0xfb */ |
| 255 | 255 | PREFIX86(_cld), /* 0xfc */ |
| 256 | 256 | PREFIX86(_std), /* 0xfd */ |
| 257 | 257 | PREFIX86(_fepre), /* 0xfe */ |
| r9860 | r9861 | |
| 514 | 514 | case 0xf8: PREFIX86(_clc)(cpustate); break;\ |
| 515 | 515 | case 0xf9: PREFIX86(_stc)(cpustate); break;\ |
| 516 | 516 | case 0xfa: PREFIX86(_cli)(cpustate); break;\ |
| 517 | | case 0xfb: PREFIX86(_sti)(cpustate); break;\ |
| 517 | case 0xfb: PREFIX186(_sti)(cpustate); break;\ |
| 518 | 518 | case 0xfc: PREFIX86(_cld)(cpustate); break;\ |
| 519 | 519 | case 0xfd: PREFIX86(_std)(cpustate); break;\ |
| 520 | 520 | case 0xfe: PREFIX86(_fepre)(cpustate); break;\ |
src/mess/machine/rmnimbus.c
| r9860 | r9861 | |
| 43 | 43 | #define LATCH_INTS 1 |
| 44 | 44 | #define LOG_PORTS 0 |
| 45 | 45 | #define LOG_INTERRUPTS 0 |
| 46 | | #define LOG_INTERRUPTS_EXT 1 |
| 46 | #define LOG_INTERRUPTS_EXT |
| 47 | 47 | #define LOG_TIMER 0 |
| 48 | 48 | #define LOG_OPTIMIZATION 0 |
| 49 | 49 | #define LOG_DMA 0 |
| 50 | 50 | #define CPU_RESUME_TRIGGER 7123 |
| 51 | 51 | #define LOG_KEYBOARD 0 |
| 52 | 52 | #define LOG_SIO 0 |
| 53 | | #define LOG_DISK_FDD 1 |
| 53 | #define LOG_DISK_FDD |
| 54 | 54 | #define LOG_DISK_HDD 0 |
| 55 | | #define LOG_DISK 1 |
| 55 | #define LOG_DISK |
| 56 | 56 | #define LOG_PC8031 0 |
| 57 | 57 | #define LOG_PC8031_186 0 |
| 58 | 58 | #define LOG_PC8031_PORT 0 |
| r9860 | r9861 | |
| 647 | 647 | if ((LOG_DMA) && (diff & 0x6811)) |
| 648 | 648 | logerror("%05X:ERROR! - unsupported DMA mode %04X\n", |
| 649 | 649 | cpu_get_pc(machine->device(MAINCPU_TAG)), new_control); |
| 650 | | |
| 650 | #if 0 |
| 651 | 651 | /* if we're going live, set a timer */ |
| 652 | 652 | if ((diff & 0x0002) && (new_control & 0x0002)) |
| 653 | 653 | { |
| r9860 | r9861 | |
| 671 | 671 | d->finished = 0; |
| 672 | 672 | } |
| 673 | 673 | } |
| 674 | #endif |
| 674 | 675 | |
| 675 | 676 | if (LOG_DMA) logerror("Initiated DMA %d - count = %04X, source = %04X, dest = %04X\n", which, d->count, d->source, d->dest); |
| 676 | 677 | if (DEBUG_SET(DMA_BREAK)) |
| r9860 | r9861 | |
| 1239 | 1240 | debug_console_register_command(machine, "nimbus_irq", CMDFLAG_NONE, 0, 0, 2, execute_debug_irq); |
| 1240 | 1241 | debug_console_register_command(machine, "nimbus_intmasks", CMDFLAG_NONE, 0, 0, 0, execute_debug_intmasks); |
| 1241 | 1242 | debug_console_register_command(machine, "nimbus_debug", CMDFLAG_NONE, 0, 0, 1, nimbus_debug); |
| 1242 | | |
| 1243 | |
| 1243 | 1244 | /* set up the instruction hook */ |
| 1244 | 1245 | machine->device(MAINCPU_TAG)->debug()->set_instruction_hook(instruction_hook); |
| 1245 | 1246 | } |
| r9860 | r9861 | |
| 2092 | 2093 | static void fdc_reset(running_machine *machine) |
| 2093 | 2094 | { |
| 2094 | 2095 | rmnimbus_state *state = machine->driver_data<rmnimbus_state>(); |
| 2095 | | state->nimbus_drives.reg400=0; |
| 2096 | running_device *fdc = machine->device(FDC_TAG); |
| 2097 | |
| 2098 | state->nimbus_drives.reg400=0; |
| 2096 | 2099 | state->nimbus_drives.reg410_in=0; |
| 2097 | 2100 | state->nimbus_drives.reg410_out=0; |
| 2098 | 2101 | state->nimbus_drives.int_ff=0; |
| 2102 | wd17xx_set_pause_time(fdc,FDC_PAUSE); |
| 2099 | 2103 | } |
| 2100 | 2104 | |
| 2101 | 2105 | static void set_disk_int(running_machine *machine, int state) |