Previous 199869 Revisions Next

r22038 Saturday 23rd March, 2013 at 13:12:26 UTC by Fabio Priuli
(MESS) readded SVP test, which got lost in MESS long ago. nw.
[src/mess/drivers]megadriv.c
[src/mess/machine]md_svp.c

trunk/src/mess/drivers/megadriv.c
r22037r22038
122122   /* Otherwise it's a 3 buttons Joypad */
123123   else
124124   {
125      UINT8 svp_test = 0;
126      if (machine.root_device().ioport(":mdslot:rom_svp:MEMORY_TEST"))
127         svp_test = state->ioport(":mdslot:rom_svp:MEMORY_TEST")->read();
128
125129      // handle test input for SVP test
126      if (portnum == 0 && machine.root_device().ioport("MEMORY_TEST")->read_safe(0x00))
130      if (portnum == 0 && svp_test)
127131      {
128132         retdata = (megadrive_io_data_regs[0] & 0xc0);
129133      }
trunk/src/mess/machine/md_svp.c
r22037r22038
304304
305305static INPUT_PORTS_START( md_svp )
306306   PORT_START("MEMORY_TEST") /* special memtest mode */
307   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Test ) )
308   PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
309   PORT_DIPSETTING( 0x01, DEF_STR( On ) )
307   PORT_CONFNAME( 0x01, 0x00, "SVP Test" )
308   PORT_CONFSETTING( 0x00, DEF_STR( Off ) )
309   PORT_CONFSETTING( 0x01, DEF_STR( On ) )
310310INPUT_PORTS_END
311311
312312//-------------------------------------------------

Previous 199869 Revisions Next


© 1997-2024 The MAME Team