Support for original Omega Race state PROM

This commit is contained in:
Mathis Rosenhauer 2008-02-27 15:51:37 +00:00
parent e65c8bd5c6
commit 210af56aa8
3 changed files with 21 additions and 3 deletions

View File

@ -503,7 +503,7 @@ static MACHINE_DRIVER_START( omegrace )
MDRV_SCREEN_SIZE(400, 300)
MDRV_SCREEN_VISIBLE_AREA(522, 1566, 522, 1566)
MDRV_VIDEO_START(dvg)
MDRV_VIDEO_START(dvg_omegrace)
MDRV_VIDEO_UPDATE(vector)
/* sound hardware */
@ -540,7 +540,7 @@ ROM_START( omegrace )
/* DVG PROM */
ROM_REGION( 0x100, REGION_USER1, 0 )
ROM_LOAD( "01-34602.bin", 0x0000, 0x0100, BAD_DUMP CRC(97953db8) SHA1(8cbded64d1dd35b18c4d5cece00f77e7b2cab2ad) )
ROM_LOAD( "dvgprom.bin", 0x0000, 0x0100, CRC(d481e958) SHA1(d8790547dc539e25984807573097b61ec3ffe614) )
ROM_END
ROM_START( deltrace )
@ -557,7 +557,7 @@ ROM_START( deltrace )
/* DVG PROM */
ROM_REGION( 0x100, REGION_USER1, 0 )
ROM_LOAD( "01-34602.bin", 0x0000, 0x0100, BAD_DUMP CRC(97953db8) SHA1(8cbded64d1dd35b18c4d5cece00f77e7b2cab2ad) )
ROM_LOAD( "dvgprom.bin", 0x0000, 0x0100, CRC(d481e958) SHA1(d8790547dc539e25984807573097b61ec3ffe614) )
ROM_END

View File

@ -1485,6 +1485,23 @@ VIDEO_START( dvg )
VIDEO_START_CALL(vector);
}
VIDEO_START( dvg_omegrace )
{
int i;
UINT8 *prom = memory_region(REGION_USER1);
/* Omega Race has two pairs of the state PROM output
* lines swapped before going into the decoder.
* Since all other avg/dvg games connect the PROM
* in a consistent way to the decoder, we swap the bits
* here. */
for (i=0; i < 256; i++)
prom[i] = ((prom[i] & 0x3) << 2) |
((prom[i] & 0xc) >> 2);
VIDEO_START_CALL(dvg);
}
VIDEO_START( avg )
{
vgc = &avg_default;

View File

@ -17,6 +17,7 @@ void avg_set_flip_x(int flip);
void avg_set_flip_y(int flip);
VIDEO_START( dvg );
VIDEO_START( dvg_omegrace );
VIDEO_START( avg );
VIDEO_START( avg_tempest );
VIDEO_START( avg_mhavoc );