vt220: Add SCN2681 hookup based on schematics (nw; code doesn't seem to quite agree)

This commit is contained in:
AJR 2017-11-22 16:18:16 -05:00
parent caaeb6be54
commit 139d4c7bb3

View File

@ -13,6 +13,7 @@
#include "emu.h"
#include "cpu/mcs51/mcs51.h"
#include "machine/mc68681.h"
#include "machine/ram.h"
#include "screen.h"
@ -38,6 +39,8 @@ static ADDRESS_MAP_START(vt220_mem, AS_PROGRAM, 8, vt220_state)
ADDRESS_MAP_END
static ADDRESS_MAP_START(vt220_io, AS_IO, 8, vt220_state)
AM_RANGE(0x2000, 0x2fff) AM_MIRROR(0xc000) AM_RAM
AM_RANGE(0x3000, 0x300f) AM_MIRROR(0xc7f0) AM_DEVREADWRITE("duart", scn2681_device, read, write)
ADDRESS_MAP_END
/* Input ports */
@ -65,6 +68,7 @@ static MACHINE_CONFIG_START( vt220 )
MCFG_CPU_PROGRAM_MAP(vt220_mem)
MCFG_CPU_IO_MAP(vt220_io)
MCFG_DEVICE_ADD("duart", SCN2681, XTAL_3_6864MHz)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)