diff options
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 |
commit | 23889862951a091e00f409157bdf6e5e8e239193 (patch) | |
tree | 11a6c4f998495ddeb87d19ba61330e49d065e6ab /src/mame/drivers/carrera.c | |
parent | 79c1e7b9461b597d52bd62c59fa3834d92666423 (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/carrera.c')
-rw-r--r-- | src/mame/drivers/carrera.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/carrera.c b/src/mame/drivers/carrera.c index 0dd58823f0f..e3936846cb0 100644 --- a/src/mame/drivers/carrera.c +++ b/src/mame/drivers/carrera.c @@ -286,7 +286,7 @@ static PALETTE_INIT(carrera) static const mc6845_interface mc6845_intf = { - "main", /* screen we are acting on */ + "screen", /* screen we are acting on */ 8, /* number of pixels per video memory address */ NULL, /* before pixel update callback */ NULL, /* row update callback */ @@ -299,13 +299,13 @@ static const mc6845_interface mc6845_intf = static MACHINE_DRIVER_START( carrera ) /* basic machine hardware */ - MDRV_CPU_ADD("main", Z80, MASTER_CLOCK / 6) + MDRV_CPU_ADD("maincpu", Z80, MASTER_CLOCK / 6) MDRV_CPU_PROGRAM_MAP(readmem, writemem) MDRV_CPU_IO_MAP(io_map, 0) - MDRV_CPU_VBLANK_INT("main", nmi_line_pulse) + MDRV_CPU_VBLANK_INT("screen", nmi_line_pulse) /* video hardware */ - MDRV_SCREEN_ADD("main", RASTER) + MDRV_SCREEN_ADD("screen", RASTER) MDRV_SCREEN_REFRESH_RATE(60) MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) @@ -330,7 +330,7 @@ MACHINE_DRIVER_END ROM_START( carrera ) - ROM_REGION( 0x10000, "main", 0 ) + ROM_REGION( 0x10000, "maincpu", 0 ) ROM_LOAD( "27512.ic22", 0x00000, 0x10000, CRC(2385b9c8) SHA1(12d4397779e074096fbb23b114985f104366b79c) ) ROM_REGION( 0x50000, "gfx1", 0 ) |