Previous 199869 Revisions Next

r44475 Monday 25th January, 2016 at 11:42:55 UTC by Robbbert
st_mp200: hopefully fix reported crash in debug build
[src/mame/drivers]st_mp200.cpp

trunk/src/mame/drivers/st_mp200.cpp
r252986r252987
7373   bool m_u11_cb2;
7474   bool m_timer_x;
7575   bool m_u11_timer;
76   bool m_su; // speech unit fitted yes/no
7776   bool m_7d; // 7-digit display yes/no
7877   UINT8 m_digit;
7978   UINT8 m_counter;
r252986r252987
321320
322321WRITE_LINE_MEMBER( st_mp200_state::u10_cb2_w )
323322{
324   if (m_su)
323   if (m_s14001a)
325324   {
326325      if (m_s14001a->busy_r())
327326         m_pia_u11->cb1_w(0);
r252986r252987
334333{
335334   output().set_value("led0", !state);
336335
337   if ((m_su) & (state))
336   if (m_s14001a && state)
338337   {
339338      if BIT(m_u10a, 7)
340339      {
r252986r252987
552551DRIVER_INIT_MEMBER( st_mp200_state, st_mp200 )
553552{
554553   m_7d = 1;
555   m_su = 0;
556554}
557555
558556DRIVER_INIT_MEMBER( st_mp200_state, st_mp201 )
559557{
560558   m_7d = 1;
561   m_su = 1;
562559}
563560
564561DRIVER_INIT_MEMBER( st_mp200_state, st_mp202 )
565562{
566563   m_7d = 0;
567   m_su = 0;
568564}
569565
570566// zero-cross detection


Previous 199869 Revisions Next


© 1997-2024 The MAME Team