diff options
author | Zsolt Vasvari <zsoltvas@mamedev.org> | 2008-02-12 12:33:10 +0000 |
---|---|---|
committer | Zsolt Vasvari <zsoltvas@mamedev.org> | 2008-02-12 12:33:10 +0000 |
commit | e12664a5ae3e08db0d9a448ac6595076a64d119e (patch) | |
tree | 73be7b29e5810c659301d64739f69e4f109c3973 /src/mame/drivers/carrera.c | |
parent | 1b1f5abc16705b6eeb8a15f2e33a95b1b11fdaf8 (diff) |
- Changed the crtc6845 to be handle based -- adjusted all drivers
- Changed qix.c to RGB32 mode and made its videoram_w do the partial updating instead of a per scanline timer
Diffstat (limited to 'src/mame/drivers/carrera.c')
-rw-r--r-- | src/mame/drivers/carrera.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/mame/drivers/carrera.c b/src/mame/drivers/carrera.c index 28652cddeee..0f9de21b1fe 100644 --- a/src/mame/drivers/carrera.c +++ b/src/mame/drivers/carrera.c @@ -47,6 +47,20 @@ Emulation Notes: #include "video/crtc6845.h" static UINT8* carrera_tileram; +static crtc6845_t *crtc6845; + + + +static WRITE8_HANDLER( carrera_crtc6845_address_w ) +{ + crtc6845_address_w(crtc6845, data); +} + +static WRITE8_HANDLER( carrera_crtc6845_register_w ) +{ + crtc6845_register_w(crtc6845, data); +} + static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) AM_RANGE(0x0000, 0x4fff) AM_READ(MRA8_ROM) @@ -57,8 +71,8 @@ ADDRESS_MAP_END static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) AM_RANGE(0x0000, 0x4fff) AM_WRITE(MWA8_ROM) AM_RANGE(0xe000, 0xe7ff) AM_WRITE(MWA8_RAM) - AM_RANGE(0xe800, 0xe800) AM_WRITE(crtc6845_address_w) - AM_RANGE(0xe801, 0xe801) AM_WRITE(crtc6845_register_w) + AM_RANGE(0xe800, 0xe800) AM_WRITE(carrera_crtc6845_address_w) + AM_RANGE(0xe801, 0xe801) AM_WRITE(carrera_crtc6845_register_w) AM_RANGE(0xf000, 0xffff) AM_WRITE(MWA8_RAM) AM_BASE(&carrera_tileram) ADDRESS_MAP_END @@ -245,6 +259,7 @@ GFXDECODE_END static VIDEO_START(carrera) { + crtc6845 = crtc6845_config(NULL); } static VIDEO_UPDATE(carrera) |