summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/bzone.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2014-03-17 13:43:18 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2014-03-17 13:43:18 +0000
commit6b6e43fa1c702ce692df4a63dbff44cbf868c001 (patch)
tree54d6712308ccc1657602aa648e342de77189c7a3 /src/mame/drivers/bzone.c
parentfb20ff1e86c473eacba4a6d612f3d942a96b3003 (diff)
avgdvg is now device (nw)
Diffstat (limited to 'src/mame/drivers/bzone.c')
-rw-r--r--src/mame/drivers/bzone.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/bzone.c b/src/mame/drivers/bzone.c
index 6e654e724d1..9270d8062df 100644
--- a/src/mame/drivers/bzone.c
+++ b/src/mame/drivers/bzone.c
@@ -211,7 +211,6 @@
#include "machine/atari_vg.h"
#include "includes/bzone.h"
#include "sound/pokey.h"
-#include "drivlgcy.h"
#include "bzone.lh"
#include "redbaron.lh"
@@ -302,9 +301,9 @@ static ADDRESS_MAP_START( bzone_map, AS_PROGRAM, 8, bzone_state )
AM_RANGE(0x0a00, 0x0a00) AM_READ_PORT("DSW0")
AM_RANGE(0x0c00, 0x0c00) AM_READ_PORT("DSW1")
AM_RANGE(0x1000, 0x1000) AM_WRITE(bzone_coin_counter_w)
- AM_RANGE(0x1200, 0x1200) AM_WRITE_LEGACY(avgdvg_go_w)
+ AM_RANGE(0x1200, 0x1200) AM_DEVWRITE("avg", avg_bzone_device, go_w)
AM_RANGE(0x1400, 0x1400) AM_WRITE(watchdog_reset_w)
- AM_RANGE(0x1600, 0x1600) AM_WRITE_LEGACY(avgdvg_reset_w)
+ AM_RANGE(0x1600, 0x1600) AM_DEVWRITE("avg", avg_bzone_device, reset_w)
AM_RANGE(0x1800, 0x1800) AM_DEVREAD("mathbox", mathbox_device, status_r)
AM_RANGE(0x1810, 0x1810) AM_DEVREAD("mathbox", mathbox_device, lo_r)
AM_RANGE(0x1818, 0x1818) AM_DEVREAD("mathbox", mathbox_device, hi_r)
@@ -322,9 +321,9 @@ static ADDRESS_MAP_START( redbaron_map, AS_PROGRAM, 8, bzone_state )
AM_RANGE(0x0a00, 0x0a00) AM_READ_PORT("DSW0")
AM_RANGE(0x0c00, 0x0c00) AM_READ_PORT("DSW1")
AM_RANGE(0x1000, 0x1000) AM_WRITENOP /* coin out - Manual states this is "Coin Counter" */
- AM_RANGE(0x1200, 0x1200) AM_WRITE_LEGACY(avgdvg_go_w)
+ AM_RANGE(0x1200, 0x1200) AM_DEVWRITE("avg", avg_bzone_device, go_w)
AM_RANGE(0x1400, 0x1400) AM_WRITE(watchdog_reset_w)
- AM_RANGE(0x1600, 0x1600) AM_WRITE_LEGACY(avgdvg_reset_w)
+ AM_RANGE(0x1600, 0x1600) AM_DEVWRITE("avg", avg_bzone_device, reset_w)
AM_RANGE(0x1800, 0x1800) AM_DEVREAD("mathbox", mathbox_device, status_r)
AM_RANGE(0x1802, 0x1802) AM_READ_PORT("IN4")
AM_RANGE(0x1804, 0x1804) AM_DEVREAD("mathbox", mathbox_device, lo_r)
@@ -356,7 +355,7 @@ ADDRESS_MAP_END
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Diagnostic Step") PORT_CODE(KEYCODE_F1)\
/* bit 6 is the VG HALT bit. We set it to "low" */\
/* per default (busy vector processor). */\
- PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(avgdvg_done_r, NULL)\
+ PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER("avg", avg_bzone_device, done_r, NULL)\
/* bit 7 is tied to a 3kHz clock */\
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, bzone_state,clock_r, NULL)
@@ -562,7 +561,8 @@ static MACHINE_CONFIG_START( bzone_base, bzone_state )
MCFG_SCREEN_VISIBLE_AREA(0, 580, 0, 400)
MCFG_SCREEN_UPDATE_DEVICE("vector", vector_device, screen_update)
- MCFG_VIDEO_START(avg_bzone)
+ MCFG_DEVICE_ADD("avg", AVG_BZONE, 0)
+ MCFG_AVGDVG_VECTOR("vector")
/* Drivers */
MCFG_MATHBOX_ADD("mathbox")