src/mess/drivers/vii.c
| r15877 | r15878 | |
| 1052 | 1052 | // verboselog(device->machine(), 0, "audio 1 IRQ\n"); |
| 1053 | 1053 | // cputag_set_input_line(device->machine(), "maincpu", UNSP_IRQ1_LINE, ASSERT_LINE); |
| 1054 | 1054 | // } |
| 1055 | | if(state->m_io_regs[0x22] & state->m_io_regs[0x22] & 0x0c00) |
| 1055 | if(state->m_io_regs[0x22] & state->m_io_regs[0x21] & 0x0c00) |
| 1056 | 1056 | { |
| 1057 | 1057 | verboselog(device->machine(), 0, "timerA, timer B IRQ\n"); |
| 1058 | 1058 | cputag_set_input_line(device->machine(), "maincpu", UNSP_IRQ2_LINE, ASSERT_LINE); |
| 1059 | 1059 | } |
| 1060 | 1060 | |
| 1061 | | //if(state->m_io_regs[0x22] & state->m_io_regs[0x22] & 0x2100) |
| 1061 | //if(state->m_io_regs[0x22] & state->m_io_regs[0x21] & 0x2100) |
| 1062 | 1062 | // For now trigger always if any enabled |
| 1063 | 1063 | if(state->VII_CTLR_IRQ_ENABLE) |
| 1064 | 1064 | { |
| r15877 | r15878 | |
| 1070 | 1070 | // cputag_set_input_line(device->machine(), "maincpu", UNSP_IRQ4_LINE, ASSERT_LINE); |
| 1071 | 1071 | // } |
| 1072 | 1072 | |
| 1073 | | if(state->m_io_regs[0x22] & state->m_io_regs[0x22] & 0x1200) |
| 1073 | if(state->m_io_regs[0x22] & state->m_io_regs[0x21] & 0x1200) |
| 1074 | 1074 | { |
| 1075 | 1075 | verboselog(device->machine(), 0, "External IRQ\n"); |
| 1076 | 1076 | cputag_set_input_line(device->machine(), "maincpu", UNSP_IRQ5_LINE, ASSERT_LINE); |
| 1077 | 1077 | } |
| 1078 | | if(state->m_io_regs[0x22] & state->m_io_regs[0x22] & 0x0070) |
| 1078 | if(state->m_io_regs[0x22] & state->m_io_regs[0x21] & 0x0070) |
| 1079 | 1079 | { |
| 1080 | 1080 | verboselog(device->machine(), 0, "1024Hz, 2048HZ, 4096HZ IRQ\n"); |
| 1081 | 1081 | cputag_set_input_line(device->machine(), "maincpu", UNSP_IRQ6_LINE, ASSERT_LINE); |
| 1082 | 1082 | } |
| 1083 | | if(state->m_io_regs[0x22] & state->m_io_regs[0x22] & 0x008b) |
| 1083 | if(state->m_io_regs[0x22] & state->m_io_regs[0x21] & 0x008b) |
| 1084 | 1084 | { |
| 1085 | 1085 | verboselog(device->machine(), 0, "TMB1, TMB2, 4Hz, key change IRQ\n"); |
| 1086 | 1086 | cputag_set_input_line(device->machine(), "maincpu", UNSP_IRQ7_LINE, ASSERT_LINE); |