summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/madalien.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-12-18 08:28:50 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-12-18 08:28:50 +0000
commitcf9fc5861805c5e344fab6e96d084a372c2683aa (patch)
treed1fd7dd4b3d409b5cdc49be0441a5fccee7e2188 /src/mame/video/madalien.c
parentd9fbf0dba5d2e98f1fe0a2f7107ac17db1146e03 (diff)
Made the concept of a "clock" native to devices. The clock is now
specified when the device is added, and the clock is available in the device_config directly via device->clock. Updated all devices that have a clock to specify it when adding the device, rather than as part of their configuration. As part of this work, also created device-specific _ADD and _REMOVE macros to simplify configuration. Dfined a generic device execute function callback, though it is not used yet. The long term plan is that any device with an execute callback will be scheduled along with the CPUs. Now that CPUs are devices, their scheduling will be moved over to this logic eventually. Changed various NVRAM devices to fetch their default memory region from the device->region rather than specifying it in the configuration. Moved a number of CPUINFO_PTR_* constants to CPUINFO_FCT_*. Fixed several drivers that manually created their own gfx_elements to fill in the machine object, so they no longer crash. Fixed incorrect CPU display on info screen (recently broken). Moved device startup to *before* the DRIVER_INIT is called. This is to allow the DRIVER_INIT to configure devices that have been properly allocated. So far I don't see any negative effects, but be on the lookout if something weird shows up. Rewrote the device iteration logic to make use of the typenext field and the newly-introduced classnext field for iterating more efficiently through devices of a given type or class. Fixed behavior of MDRV_CPU_REPLACE so it does not delete and then re-add a CPU (causing the order to change).
Diffstat (limited to 'src/mame/video/madalien.c')
-rw-r--r--src/mame/video/madalien.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mame/video/madalien.c b/src/mame/video/madalien.c
index 973ea6b4b13..d47545b3642 100644
--- a/src/mame/video/madalien.c
+++ b/src/mame/video/madalien.c
@@ -379,7 +379,6 @@ GFXDECODE_END
static const mc6845_interface mc6845_intf =
{
"main", /* screen we are acting on */
- PIXEL_CLOCK / 8, /* the clock of the chip */
8, /* number of pixels per video memory address */
NULL, /* before pixel update callback */
NULL, /* row update callback */
@@ -401,6 +400,5 @@ MACHINE_DRIVER_START( madalien_video )
MDRV_VIDEO_START(madalien)
MDRV_VIDEO_UPDATE(madalien)
- MDRV_DEVICE_ADD("crtc", MC6845)
- MDRV_DEVICE_CONFIG(mc6845_intf)
+ MDRV_MC6845_ADD("crtc", MC6845, PIXEL_CLOCK / 8, mc6845_intf)
MACHINE_DRIVER_END