summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/acefruit.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-02-25 06:28:42 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-02-25 06:28:42 +0000
commit23889862951a091e00f409157bdf6e5e8e239193 (patch)
tree11a6c4f998495ddeb87d19ba61330e49d065e6ab /src/mame/drivers/acefruit.c
parent79c1e7b9461b597d52bd62c59fa3834d92666423 (diff)
Device tag renaming. Moving away from generic names like "main"
to names that capture the device type as well. Added validity checks for the short-term to prevent the continuance of this pattern (which I started :) Changes: CPU/"main" -> "maincpu" CPU/"audio" -> "audiocpu" CPU/"sound" -> "soundcpu" SCREEN/main -> "screen" (since it's the only one) Eventually, devices will be required to have unique tags within a machine, regardless of type.
Diffstat (limited to 'src/mame/drivers/acefruit.c')
-rw-r--r--src/mame/drivers/acefruit.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/acefruit.c b/src/mame/drivers/acefruit.c
index fd5f642117d..c84f9666602 100644
--- a/src/mame/drivers/acefruit.c
+++ b/src/mame/drivers/acefruit.c
@@ -547,14 +547,14 @@ GFXDECODE_END
static MACHINE_DRIVER_START( acefruit )
/* basic machine hardware */
- MDRV_CPU_ADD("main", Z80, 2500000) /* 2.5MHz */
+ MDRV_CPU_ADD("maincpu", Z80, 2500000) /* 2.5MHz */
MDRV_CPU_PROGRAM_MAP(acefruit_map,0)
MDRV_CPU_IO_MAP(acefruit_io,0)
MDRV_GFXDECODE(acefruit)
- MDRV_CPU_VBLANK_INT("main", acefruit_vblank)
+ MDRV_CPU_VBLANK_INT("screen", acefruit_vblank)
/* video hardware */
- MDRV_SCREEN_ADD("main", RASTER)
+ MDRV_SCREEN_ADD("screen", RASTER)
MDRV_SCREEN_REFRESH_RATE(60)
MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
@@ -573,7 +573,7 @@ MACHINE_DRIVER_END
static DRIVER_INIT( sidewndr )
{
- UINT8 *ROM = memory_region( machine, "main" );
+ UINT8 *ROM = memory_region( machine, "maincpu" );
/* replace "ret nc" ( 0xd0 ) with "di" */
ROM[ 0 ] = 0xf3;
/* this is either a bad dump or the cpu core should set the carry flag on reset */
@@ -586,7 +586,7 @@ static DRIVER_INIT( sidewndr )
***************************************************************************/
ROM_START( sidewndr )
- ROM_REGION( 0x10000, "main", 0 )
+ ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "2_h09.bin", 0x000000, 0x000800, BAD_DUMP CRC(141f3b0c) SHA1(1704feba950fe7aa939b9ed54c37264d10527d11) )
ROM_LOAD( "2_h10.bin", 0x000800, 0x000800, CRC(36a2d4af) SHA1(2388e22245497240e5721895d94d2ccd1f579eff) )
ROM_LOAD( "2_h11.bin", 0x001000, 0x000800, CRC(e2932643) SHA1(e1c0cd5d0cd332519432cbefa8718362a6cd1ccc) )
@@ -600,7 +600,7 @@ ROM_START( sidewndr )
ROM_END
ROM_START( spellbnd )
- ROM_REGION( 0x10000, "main", 0 )
+ ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "h9.bin", 0x000000, 0x000800, CRC(9919fcfa) SHA1(04167b12ee9e60ef891893a305a35d3f2eccb0bb) )
ROM_LOAD( "h10.bin", 0x000800, 0x000800, CRC(90502d00) SHA1(3bdd859d9146df2eb97b4517c446182569a55a46) )
ROM_LOAD( "h11.bin", 0x001000, 0x000800, CRC(7375166c) SHA1(f05b01941423fd36e0a5d3aa913a594e4e7aa5d4) )
@@ -663,7 +663,7 @@ Notes:
*/
ROM_START( starspnr )
- ROM_REGION( 0x10000, "main", 0 )
+ ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "h9.h9", 0x00e000, 0x0800, CRC(083068aa) SHA1(160a5f3bf33d0a53354f98295cd67022762928b6) )
ROM_CONTINUE( 0x000000, 0x0800 )
ROM_LOAD( "h10.h10", 0x00e800, 0x0800, CRC(a0a96e55) SHA1(de4dc0da5a1f358085817690cc6bdc8d94a849f8) )
@@ -687,7 +687,7 @@ ROM_END
/* no information about this one */
ROM_START( acefruit )
- ROM_REGION( 0x10000, "main", 0 )
+ ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "vp-h9.bin", 0x00e000, 0x0800, CRC(f595daf7) SHA1(be5abd34fd06f73cd80f5b15902d158e33705c8f) )
ROM_CONTINUE( 0x000000, 0x0800 )
ROM_LOAD( "vp-h10.bin", 0x00e800, 0x0800, CRC(b0539100) SHA1(763f31f72f55c3322b24e127b37130d37daa5216) )