Previous 15994 Revisions Next

r15878 Sunday 12th August, 2012 at 22:06:23 UTC by MooglyGuy
[VII] Fixing some warnings. Not 100% sure of the intended functionality, but IRQ & IRQ_MASK & line seems probable and seems to work. [MooglyGuy]
[src/mess/drivers]vii.c

src/mess/drivers/vii.c
r15877r15878
10521052//      verboselog(device->machine(), 0, "audio 1 IRQ\n");
10531053//      cputag_set_input_line(device->machine(), "maincpu", UNSP_IRQ1_LINE, ASSERT_LINE);
10541054//  }
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)
10561056   {
10571057      verboselog(device->machine(), 0, "timerA, timer B IRQ\n");
10581058      cputag_set_input_line(device->machine(), "maincpu", UNSP_IRQ2_LINE, ASSERT_LINE);
10591059   }
10601060
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)
10621062   // For now trigger always if any enabled
10631063   if(state->VII_CTLR_IRQ_ENABLE)
10641064   {
r15877r15878
10701070//      cputag_set_input_line(device->machine(), "maincpu", UNSP_IRQ4_LINE, ASSERT_LINE);
10711071//  }
10721072
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)
10741074   {
10751075      verboselog(device->machine(), 0, "External IRQ\n");
10761076      cputag_set_input_line(device->machine(), "maincpu", UNSP_IRQ5_LINE, ASSERT_LINE);
10771077   }
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)
10791079   {
10801080      verboselog(device->machine(), 0, "1024Hz, 2048HZ, 4096HZ IRQ\n");
10811081      cputag_set_input_line(device->machine(), "maincpu", UNSP_IRQ6_LINE, ASSERT_LINE);
10821082   }
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)
10841084   {
10851085      verboselog(device->machine(), 0, "TMB1, TMB2, 4Hz, key change IRQ\n");
10861086      cputag_set_input_line(device->machine(), "maincpu", UNSP_IRQ7_LINE, ASSERT_LINE);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team