| 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 |
| r22037 | r22038 | |
|---|---|---|
| 122 | 122 | /* Otherwise it's a 3 buttons Joypad */ |
| 123 | 123 | else |
| 124 | 124 | { |
| 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 | ||
| 125 | 129 | // handle test input for SVP test |
| 126 | if (portnum == 0 && | |
| 130 | if (portnum == 0 && svp_test) | |
| 127 | 131 | { |
| 128 | 132 | retdata = (megadrive_io_data_regs[0] & 0xc0); |
| 129 | 133 | } |
| r22037 | r22038 | |
|---|---|---|
| 304 | 304 | |
| 305 | 305 | static INPUT_PORTS_START( md_svp ) |
| 306 | 306 | 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 ) ) | |
| 310 | 310 | INPUT_PORTS_END |
| 311 | 311 | |
| 312 | 312 | //------------------------------------------------- |
| Previous | 199869 Revisions | Next |