Previous 199869 Revisions Next

r20221 Saturday 12th January, 2013 at 19:58:49 UTC by Wilbert Pol
(MESS) Running eagles5 on the sms2kr driver. It apparently expects the irq to be cleared when explicitly disabling VINT irqs during VINT. (nw)
[hash]sms.xml
[src/emu/video]315_5124.c

trunk/hash/sms.xml
r20220r20221
17771777      </part>
17781778   </software>
17791779
1780   <software name="eagles5" supported="no">
1780   <software name="eagles5">
17811781      <description>Eagles 5 (Kor)</description>
17821782      <year>1990</year>
17831783      <publisher>Zemina</publisher>
trunk/src/emu/video/315_5124.c
r20220r20221
602602         if (reg_num == 1)
603603         {
604604            m_check_vint_timer->adjust( m_screen->time_until_pos( m_screen->vpos(), VINT_HPOS) );
605
606            //
607            // When running eagles5 on the ssm2kr driver the irq_state is 1 because of some
608            // previos HINTs that occured. eagles5 sets register 01 to 0x02 and expects
609            // the irq state to be cleared after that.
610            // The following bit of code takes care of that.
611            //
612            if ((m_status & STATUS_VINT) && !(m_reg[0x01] & 0x20))
613            {
614               if (m_irq_state == 1)
615               {
616                  m_irq_state = 0;
617
618                  if ( !m_cb_int.isnull() )
619                  {
620                     m_cb_int(CLEAR_LINE);
621                  }
622               }
623            }
624
605625         }
606626         m_addrmode = 0;
607627         break;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team