Previous 199869 Revisions Next

r19502 Thursday 13th December, 2012 at 00:02:54 UTC by Tafoid
Fix crashing regression in most games in nbmj8891 driver - from Takahiro Nogi. (nw)
[src/mame/drivers]nbmj8891.c
[src/mame/video]nbmj8891.c

trunk/src/mame/drivers/nbmj8891.c
r19501r19502
708708
709709   /* This DIPSW is fake. Type A is common, Type B is rare */
710710   PORT_START("FONTTYPE")
711   PORT_CONFNAME(    0x01, 0x00, "Font Type" )
712   PORT_CONFSETTING( 0x00,       "Type-A" )
713   PORT_CONFSETTING( 0x01,       "Type-B" )
714   PORT_BIT(         0xfe,       IP_ACTIVE_HIGH, IPT_UNUSED )
711   PORT_CONFNAME( 0x01, 0x00, "Font Type" )
712   PORT_CONFSETTING(    0x00, "Type-A" )
713   PORT_CONFSETTING(    0x01, "Type-B" )
714   PORT_BIT(            0xfe, IP_ACTIVE_HIGH, IPT_UNUSED )
715715
716716   PORT_INCLUDE( nbmjcontrols )
717717INPUT_PORTS_END
trunk/src/mame/video/nbmj8891.c
r19501r19502
230230      nbmj8891_gfxdraw(machine());
231231   }
232232
233//  m_blitter_direction_x = 0;                // for debug
234//  m_blitter_direction_y = 0;                // for debug
235   m_dispflag = 1;               // for debug
236
233237   m_param_cnt++;
234238}
235239
r19501r19502
373377         color = GFX[gfxaddr++];
374378
375379         // for hanamomo font type
376         if ((state->ioport("FONTTYPE")->read()) == 0)
380         if (nb1413m3_type == NB1413M3_HANAMOMO)
377381         {
378            if (nb1413m3_type == NB1413M3_HANAMOMO)
382            if ((state->ioport("FONTTYPE")->read()) == 0x00)
379383            {
380384               if ((gfxaddr >= 0x20000) && (gfxaddr < 0x28000))
381385               {

Previous 199869 Revisions Next


© 1997-2024 The MAME Team