mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
Support for original Omega Race state PROM
This commit is contained in:
parent
e65c8bd5c6
commit
210af56aa8
@ -503,7 +503,7 @@ static MACHINE_DRIVER_START( omegrace )
|
|||||||
MDRV_SCREEN_SIZE(400, 300)
|
MDRV_SCREEN_SIZE(400, 300)
|
||||||
MDRV_SCREEN_VISIBLE_AREA(522, 1566, 522, 1566)
|
MDRV_SCREEN_VISIBLE_AREA(522, 1566, 522, 1566)
|
||||||
|
|
||||||
MDRV_VIDEO_START(dvg)
|
MDRV_VIDEO_START(dvg_omegrace)
|
||||||
MDRV_VIDEO_UPDATE(vector)
|
MDRV_VIDEO_UPDATE(vector)
|
||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
@ -540,7 +540,7 @@ ROM_START( omegrace )
|
|||||||
|
|
||||||
/* DVG PROM */
|
/* DVG PROM */
|
||||||
ROM_REGION( 0x100, REGION_USER1, 0 )
|
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_END
|
||||||
|
|
||||||
ROM_START( deltrace )
|
ROM_START( deltrace )
|
||||||
@ -557,7 +557,7 @@ ROM_START( deltrace )
|
|||||||
|
|
||||||
/* DVG PROM */
|
/* DVG PROM */
|
||||||
ROM_REGION( 0x100, REGION_USER1, 0 )
|
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_END
|
||||||
|
|
||||||
|
|
||||||
|
@ -1485,6 +1485,23 @@ VIDEO_START( dvg )
|
|||||||
VIDEO_START_CALL(vector);
|
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 )
|
VIDEO_START( avg )
|
||||||
{
|
{
|
||||||
vgc = &avg_default;
|
vgc = &avg_default;
|
||||||
|
@ -17,6 +17,7 @@ void avg_set_flip_x(int flip);
|
|||||||
void avg_set_flip_y(int flip);
|
void avg_set_flip_y(int flip);
|
||||||
|
|
||||||
VIDEO_START( dvg );
|
VIDEO_START( dvg );
|
||||||
|
VIDEO_START( dvg_omegrace );
|
||||||
VIDEO_START( avg );
|
VIDEO_START( avg );
|
||||||
VIDEO_START( avg_tempest );
|
VIDEO_START( avg_tempest );
|
||||||
VIDEO_START( avg_mhavoc );
|
VIDEO_START( avg_mhavoc );
|
||||||
|
Loading…
Reference in New Issue
Block a user