summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/ec65.c
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2014-02-21 09:51:59 +0000
committer smf- <smf-@users.noreply.github.com>2014-02-21 09:51:59 +0000
commitab02ed5e2d53f007be1ea38095760063cb0dc7eb (patch)
treef83594a869b72a2eeed070abb72b0b8cc56677ed /src/mess/drivers/ec65.c
parentc386707cc7c4e08d79dd7442968c7402ce58e818 (diff)
Rewritten 6850 based on datasheet using external CLOCK & removed MIDI clock hacks. Standardised COM8116 DEVCB2 callbacks. GUS gf1_device device derives from acia6850_device to gain access to the tx & rx irq state, rather than exposing it with a public method. [smf]
Diffstat (limited to 'src/mess/drivers/ec65.c')
-rw-r--r--src/mess/drivers/ec65.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/mess/drivers/ec65.c b/src/mess/drivers/ec65.c
index 2065e1b2931..84a2b4b5241 100644
--- a/src/mess/drivers/ec65.c
+++ b/src/mess/drivers/ec65.c
@@ -59,8 +59,8 @@ static ADDRESS_MAP_START(ec65_mem, AS_PROGRAM, 8, ec65_state)
ADDRESS_MAP_UNMAP_HIGH
AM_RANGE(0x0000, 0xdfff) AM_RAM
AM_RANGE(0xe000, 0xe003) AM_DEVREADWRITE(PIA6821_TAG, pia6821_device, read, write)
- AM_RANGE(0xe010, 0xe010) AM_DEVREADWRITE(ACIA6850_TAG, acia6850_device, status_read, control_write)
- AM_RANGE(0xe011, 0xe011) AM_DEVREADWRITE(ACIA6850_TAG, acia6850_device, data_read, data_write)
+ AM_RANGE(0xe010, 0xe010) AM_DEVREADWRITE(ACIA6850_TAG, acia6850_device, status_r, control_w)
+ AM_RANGE(0xe011, 0xe011) AM_DEVREADWRITE(ACIA6850_TAG, acia6850_device, data_r, data_w)
AM_RANGE(0xe100, 0xe10f) AM_DEVREADWRITE(VIA6522_0_TAG, via6522_device, read, write)
AM_RANGE(0xe110, 0xe11f) AM_DEVREADWRITE(VIA6522_1_TAG, via6522_device, read, write)
AM_RANGE(0xe130, 0xe133) AM_DEVREADWRITE(ACIA6551_TAG, mos6551_device, read, write)
@@ -78,15 +78,6 @@ static ADDRESS_MAP_START(ec65k_mem, AS_PROGRAM, 8, ec65_state)
AM_RANGE(0xf000, 0xffff) AM_ROM
ADDRESS_MAP_END
-static ACIA6850_INTERFACE( ec65_acia_intf )
-{
- 0,
- 0,
- DEVCB_NULL,
- DEVCB_NULL,
- DEVCB_NULL
-};
-
/* Input ports */
static INPUT_PORTS_START( ec65 )
INPUT_PORTS_END
@@ -219,7 +210,8 @@ static MACHINE_CONFIG_START( ec65, ec65_state )
/* devices */
MCFG_DEVICE_ADD(PIA6821_TAG, PIA6821, 0)
- MCFG_ACIA6850_ADD(ACIA6850_TAG, ec65_acia_intf)
+
+ MCFG_DEVICE_ADD(ACIA6850_TAG, ACIA6850, 0)
MCFG_DEVICE_ADD(VIA6522_0_TAG, VIA6522, XTAL_4MHz / 4)