From dbfdef1cacce3dba42db1277296ca5837eaa5002 Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 9 Jun 2017 00:02:25 -0400 Subject: [PATCH] korgm1.cpp: Minor update (nw) --- src/mame/etc/korgm1.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mame/etc/korgm1.cpp b/src/mame/etc/korgm1.cpp index f9dd829cfb8..c0977a3a47d 100644 --- a/src/mame/etc/korgm1.cpp +++ b/src/mame/etc/korgm1.cpp @@ -14,6 +14,7 @@ #include "emu.h" #include "cpu/nec/nec.h" +#include "machine/cxd1095.h" //#include "sound/ay8910.h" #define MAIN_CLOCK XTAL_16MHz // Unknown clock @@ -63,8 +64,8 @@ static ADDRESS_MAP_START( korgm1_io, AS_IO, 16, korgm1_state ) // AM_RANGE(0x0600, 0x0601) OPZ 1 (8-bit port) // AM_RANGE(0x0700, 0x0701) OPZ 2 (8-bit port) // AM_RANGE(0x0800, 0x0801) SCAN (8-bit port) (keyboard) -// AM_RANGE(0x0900, 0x09??) A/D Converter (M58990P, Joystick, "value" and After Touch routes here) ** -// AM_RANGE(0x0a00, 0x0a03) PPI (CXD1095, presumably i8255 compatible, LCD, LED and SW routes here) * +// AM_RANGE(0x0900, 0x0900) ADC (M58990P, compatible with ADC0808; Joystick, "value" and After Touch routes here) +// AM_RANGE(0x0a00, 0x0a07) PIO (CXD1095Q; LCD, LED and SW routes here; also controls ADC channel select and TG/VDF/MDE reset line) // AM_RANGE(0x0b00, 0x0b01) LCDC (8-bit port) // AM_RANGE(0x1000, 0x11ff) TG (MB87402) // AM_RANGE(0x2000, 0x23ff) SCSI @@ -72,9 +73,6 @@ static ADDRESS_MAP_START( korgm1_io, AS_IO, 16, korgm1_state ) // TG 2? ADDRESS_MAP_END -// * Rail Chase 2 shares this (iocpu) -// ** Lock-On shares this - static INPUT_PORTS_START( korgm1 ) /* dummy active high structure */ PORT_START("SYSA") @@ -169,6 +167,8 @@ static MACHINE_CONFIG_START( korgm1, korgm1_state ) MCFG_CPU_PROGRAM_MAP(korgm1_map) MCFG_CPU_IO_MAP(korgm1_io) + MCFG_DEVICE_ADD("pio", CXD1095, 0) + /* video hardware */ /* TODO: LCD actually */ MCFG_SCREEN_ADD("screen", RASTER)