From 236a6772c0aa1e6fb804d83c984225429f683147 Mon Sep 17 00:00:00 2001 From: AJR Date: Mon, 8 Oct 2018 12:33:51 -0400 Subject: Rename is488a to is482; this is all a big mess (nw) --- scripts/target/mame/mess.lua | 2 +- src/mame/drivers/is488.cpp | 70 -------------------------------------------- src/mame/drivers/is48x.cpp | 70 ++++++++++++++++++++++++++++++++++++++++++++ src/mame/mame.lst | 4 +-- src/mame/mess.flt | 2 +- 5 files changed, 74 insertions(+), 74 deletions(-) delete mode 100644 src/mame/drivers/is488.cpp create mode 100644 src/mame/drivers/is48x.cpp diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua index abbd84aad9d..080fc1b93e0 100644 --- a/scripts/target/mame/mess.lua +++ b/scripts/target/mame/mess.lua @@ -3721,7 +3721,7 @@ files { MAME_DIR .. "src/mame/drivers/if800.cpp", MAME_DIR .. "src/mame/drivers/imsai.cpp", MAME_DIR .. "src/mame/drivers/indiana.cpp", - MAME_DIR .. "src/mame/drivers/is488.cpp", + MAME_DIR .. "src/mame/drivers/is48x.cpp", MAME_DIR .. "src/mame/drivers/itt3030.cpp", MAME_DIR .. "src/mame/drivers/jade.cpp", MAME_DIR .. "src/mame/drivers/jonos.cpp", diff --git a/src/mame/drivers/is488.cpp b/src/mame/drivers/is488.cpp deleted file mode 100644 index bd5ca6be232..00000000000 --- a/src/mame/drivers/is488.cpp +++ /dev/null @@ -1,70 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:AJR -/*********************************************************************************************************************************** - - Skeleton driver for Decision Data IS-488 IBM 3488-compatible workstation display. - -***********************************************************************************************************************************/ - -#include "emu.h" -#include "cpu/i86/i186.h" -//#include "cpu/bcp/bcp.h" -//#include "machine/eeprompar.h" -//#include "video/mc6845.h" -//#include "screen.h" - -class is488_state : public driver_device -{ -public: - is488_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag) - , m_maincpu(*this, "maincpu") - { } - - void is488a(machine_config &config); - -private: - void mem_map(address_map &map); - void io_map(address_map &map); - - required_device m_maincpu; -}; - -void is488_state::mem_map(address_map &map) -{ - map(0x00000, 0x07fff).ram(); - map(0x40000, 0x47fff).ram(); - map(0x50000, 0x51fff).ram(); - map(0x54000, 0x55fff).ram(); - map(0x60022, 0x60022).nopr(); - map(0x61ffa, 0x61ffa).nopr(); - map(0x80000, 0xfffff).rom().region("program", 0); -} - -void is488_state::io_map(address_map &map) -{ - map(0x8005, 0x8005).nopw(); - //map(0x8080, 0x8080).w("crtc", FUNC(mc6845_device::address_w)); - //map(0x8081, 0x8081).rw("crtc", FUNC(mc6845_device::register_r), FUNC(mc6845_device::register_w)); - map(0x8101, 0x8101).nopr(); - map(0x8180, 0x8180).ram(); -} - -static INPUT_PORTS_START(is488a) -INPUT_PORTS_END - -void is488_state::is488a(machine_config &config) -{ - I80188(config, m_maincpu, 16_MHz_XTAL); - m_maincpu->set_addrmap(AS_PROGRAM, &is488_state::mem_map); - m_maincpu->set_addrmap(AS_IO, &is488_state::io_map); - - //DP8344(config, "bcp", 18.867_MHz_XTAL); -} - -ROM_START(is488a) - ROM_REGION(0x80000, "program", 0) - ROM_LOAD("is-482_u67_s008533243.bin", 0x00000, 0x80000, CRC(1e23ac17) SHA1(aadc73bc0454c5b1c33d440dc511009dc6b7f9e0)) -ROM_END - -COMP(199?, is488a, 0, 0, is488a, is488a, is488_state, empty_init, "Decision Data", "IS-488-A Workstation", MACHINE_IS_SKELETON) diff --git a/src/mame/drivers/is48x.cpp b/src/mame/drivers/is48x.cpp new file mode 100644 index 00000000000..8c06be7ac97 --- /dev/null +++ b/src/mame/drivers/is48x.cpp @@ -0,0 +1,70 @@ +// license:BSD-3-Clause +// copyright-holders:AJR +/*********************************************************************************************************************************** + + Skeleton driver for Decision Data IS-48x/LM-48xC IBM-compatible coax workstation displays. + +***********************************************************************************************************************************/ + +#include "emu.h" +#include "cpu/i86/i186.h" +//#include "cpu/bcp/bcp.h" +//#include "machine/eeprompar.h" +//#include "video/mc6845.h" +//#include "screen.h" + +class is48x_state : public driver_device +{ +public: + is48x_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag) + , m_maincpu(*this, "maincpu") + { } + + void is482(machine_config &config); + +private: + void mem_map(address_map &map); + void io_map(address_map &map); + + required_device m_maincpu; +}; + +void is48x_state::mem_map(address_map &map) +{ + map(0x00000, 0x07fff).ram(); + map(0x40000, 0x47fff).ram(); + map(0x50000, 0x51fff).ram(); + map(0x54000, 0x55fff).ram(); + map(0x60022, 0x60022).nopr(); + map(0x61ffa, 0x61ffa).nopr(); + map(0x80000, 0xfffff).rom().region("program", 0); +} + +void is48x_state::io_map(address_map &map) +{ + map(0x8005, 0x8005).nopw(); + //map(0x8080, 0x8080).w("crtc", FUNC(mc6845_device::address_w)); + //map(0x8081, 0x8081).rw("crtc", FUNC(mc6845_device::register_r), FUNC(mc6845_device::register_w)); + map(0x8101, 0x8101).nopr(); + map(0x8180, 0x8180).ram(); +} + +static INPUT_PORTS_START(is482) +INPUT_PORTS_END + +void is48x_state::is482(machine_config &config) +{ + I80188(config, m_maincpu, 16_MHz_XTAL); + m_maincpu->set_addrmap(AS_PROGRAM, &is48x_state::mem_map); + m_maincpu->set_addrmap(AS_IO, &is48x_state::io_map); + + //DP8344(config, "bcp", 18.867_MHz_XTAL); +} + +ROM_START(is482) // "IS-488-A" on case + ROM_REGION(0x80000, "program", 0) + ROM_LOAD("is-482_u67_s008533243.bin", 0x00000, 0x80000, CRC(1e23ac17) SHA1(aadc73bc0454c5b1c33d440dc511009dc6b7f9e0)) +ROM_END + +COMP(199?, is482, 0, 0, is482, is482, is48x_state, empty_init, "Decision Data", "IS-482 Workstation", MACHINE_IS_SKELETON) diff --git a/src/mame/mame.lst b/src/mame/mame.lst index 80f20e90198..602a688eb49 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -15645,8 +15645,8 @@ farwest // bootleg ironhors // GX560 (c) 1986 ironhorsh // GX560 (c) 1986 -@source:is488.cpp -is488a // +@source:is48x.cpp +is482 // @source:isbc.cpp isbc286 // diff --git a/src/mame/mess.flt b/src/mame/mess.flt index d10ba1c7a76..b60d98d4c4d 100644 --- a/src/mame/mess.flt +++ b/src/mame/mess.flt @@ -331,7 +331,7 @@ iq151.cpp iqunlim.cpp iris3130.cpp irisha.cpp -is488.cpp +is48x.cpp isbc.cpp isbc8010.cpp isbc8030.cpp -- cgit v1.2.3