diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2017-11-21 22:02:15 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2017-11-21 22:07:29 -0500 |
commit | 0a2a4e849f0d90ddf494b3a1275b723545b80e4f (patch) | |
tree | f3f762b01841643e7999819e36c419183b90b2ed | |
parent | a20225037b916de8f484419c4bc03c7c4b12f6fd (diff) |
cit220p: Give this one a separate driver as well (nw)
-rw-r--r-- | scripts/target/mame/mess.lua | 1 | ||||
-rw-r--r-- | src/mame/drivers/cit220.cpp | 76 | ||||
-rw-r--r-- | src/mame/drivers/terminals.cpp | 24 | ||||
-rw-r--r-- | src/mame/mame.lst | 4 | ||||
-rw-r--r-- | src/mame/mess.flt | 1 |
5 files changed, 81 insertions, 25 deletions
diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua index 688a08db563..7c92f6261fa 100644 --- a/scripts/target/mame/mess.lua +++ b/scripts/target/mame/mess.lua @@ -3445,6 +3445,7 @@ files { MAME_DIR .. "src/mame/drivers/chesstrv.cpp", MAME_DIR .. "src/mame/drivers/cd2650.cpp", MAME_DIR .. "src/mame/drivers/cdc721.cpp", + MAME_DIR .. "src/mame/drivers/cit220.cpp", MAME_DIR .. "src/mame/drivers/codata.cpp", MAME_DIR .. "src/mame/drivers/controlid.cpp", MAME_DIR .. "src/mame/drivers/cortex.cpp", diff --git a/src/mame/drivers/cit220.cpp b/src/mame/drivers/cit220.cpp new file mode 100644 index 00000000000..415b87ae437 --- /dev/null +++ b/src/mame/drivers/cit220.cpp @@ -0,0 +1,76 @@ +// license:BSD-3-Clause +// copyright-holders: +/*********************************************************************************************************************************** + +Skeleton driver for VT220-compatible terminals by C. Itoh/CIE Terminals. + +The CIT-220+ Video Terminal was introduced as a direct competitor to DEC's VT220. It copied the design of the VT220 closely +enough to provoke a lawsuit, which led to its eventual withdrawal in favor of its successor, the CIT224. + +************************************************************************************************************************************/ + +#include "emu.h" +#include "cpu/i8085/i8085.h" + + +class cit220_state : public driver_device +{ +public: + cit220_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag) + , m_maincpu(*this, "maincpu") + //, m_p_chargen(*this, "chargen") + { } + + DECLARE_WRITE_LINE_MEMBER(sod_w); + +private: + required_device<cpu_device> m_maincpu; + //required_region_ptr<u8> m_p_chargen; +}; + + +WRITE_LINE_MEMBER(cit220_state::sod_w) +{ + logerror("SOD set %s\n", state ? "high" : "low"); +} + +static ADDRESS_MAP_START( mem_map, AS_PROGRAM, 8, cit220_state ) + AM_RANGE(0x0000, 0x7fff) AM_ROM AM_REGION("maincpu", 0) + AM_RANGE(0x8000, 0x87ff) AM_RAM + AM_RANGE(0xa000, 0xa1ff) AM_ROM AM_REGION("eeprom", 0x800) +ADDRESS_MAP_END + +static ADDRESS_MAP_START( io_map, AS_IO, 8, cit220_state ) + AM_RANGE(0x21, 0x21) AM_READNOP +ADDRESS_MAP_END + + +static INPUT_PORTS_START( cit220p ) +INPUT_PORTS_END + + +static MACHINE_CONFIG_START( cit220p ) + MCFG_CPU_ADD("maincpu", I8085A, 6'000'000) + MCFG_CPU_PROGRAM_MAP(mem_map) + MCFG_CPU_IO_MAP(io_map) + MCFG_I8085A_SOD(WRITELINE(cit220_state, sod_w)) +MACHINE_CONFIG_END + + +ROM_START( cit220p ) + ROM_REGION(0x8000, "maincpu", 0) + ROM_LOAD( "v17_001a.ic23", 0x0000, 0x4000, CRC(2cc43026) SHA1(366f57292c6e44571368c29e3258203779847356) ) + ROM_LOAD( "v17_001b.ic24", 0x4000, 0x4000, CRC(a56b16f1) SHA1(c68f26b35453153f7defcf1cf2b7ad7fe36cc9e7) ) + + ROM_REGION(0x1000, "eeprom", 0) + ROM_LOAD( "eeprom.bin", 0x0000, 0x1000, CRC(7b24878a) SHA1(20086fb792a24339b65abe627aefbcf48e2abcf4) ) // don't know where this fits in + + ROM_REGION(0x1000, "chargen", 0) + ROM_LOAD( "v20_cg.ic17", 0x0000, 0x1000, CRC(76ef7ca9) SHA1(6e7799ca0a41350fbc369bbbd4ab581150f37b10) ) + + ROM_REGION(0x10000, "keyboard", 0) + ROM_LOAD( "v00_kbd.bin", 0x0000, 0x1000, CRC(f9d24190) SHA1(c4e9ef8188afb18de373f2a537ca9b7a315bfb76) ) +ROM_END + +COMP( 1983, cit220p, 0, 0, cit220p, cit220p, cit220_state, 0, "C. Itoh", "CIT-220+ Video Terminal", MACHINE_IS_SKELETON ) diff --git a/src/mame/drivers/terminals.cpp b/src/mame/drivers/terminals.cpp index 041f9e555e3..1a920b2b663 100644 --- a/src/mame/drivers/terminals.cpp +++ b/src/mame/drivers/terminals.cpp @@ -126,30 +126,6 @@ COMP( 1987, att630, 0, 0, terminals, terminals, terminals_state, 0, "AT&T", "630 /************************************************************************************************************** -C. Itoh CIT-220+ -Code looks like Z80/8080/8085 - -***************************************************************************************************************/ - -ROM_START( cit220p ) - ROM_REGION(0x10000, "maincpu", 0) - ROM_LOAD( "v17_001a.ic23", 0x0000, 0x4000, CRC(2cc43026) SHA1(366f57292c6e44571368c29e3258203779847356) ) - ROM_LOAD( "v17_001b.ic24", 0x4000, 0x4000, CRC(a56b16f1) SHA1(c68f26b35453153f7defcf1cf2b7ad7fe36cc9e7) ) - ROM_LOAD( "eeprom.bin", 0xf000, 0x1000, CRC(7b24878a) SHA1(20086fb792a24339b65abe627aefbcf48e2abcf4) ) // don't know where this fits in - - ROM_REGION(0x1000, "chargen", 0) - ROM_LOAD( "v20_cg.ic17", 0x0000, 0x1000, CRC(76ef7ca9) SHA1(6e7799ca0a41350fbc369bbbd4ab581150f37b10) ) - - ROM_REGION(0x10000, "keyboard", 0) - ROM_LOAD( "v00_kbd.bin", 0x0000, 0x1000, CRC(f9d24190) SHA1(c4e9ef8188afb18de373f2a537ca9b7a315bfb76) ) -ROM_END - -COMP( 1985, cit220p, 0, 0, terminals, terminals, terminals_state, 0, "C. Itoh", "CIT-220+", MACHINE_IS_SKELETON ) - - - -/************************************************************************************************************** - Data General D461. Chips: SCN2681A, X2210P, 2x HM6116P-2, 2x HM6264P-20, HD68B09EP, CRT9007, 1x 8-sw dip. Crystals: 3.6864, 59.2920 diff --git a/src/mame/mame.lst b/src/mame/mame.lst index 63968e736c7..13b897181e8 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -9713,6 +9713,9 @@ f1gpstr2 // (c) 1993 Jaleco scudhamm // (c) 1994 Jaleco wildplt // (c) 1992 Jaleco +@source:cit220.cpp +cit220p // (c) 1984 C. Itoh + @source:citycon.cpp citycon // (c) 1985 Jaleco citycona // (c) 1985 Jaleco @@ -36313,7 +36316,6 @@ t4490 // Terco 4490 Mill CNC Control (c) 1986 @source:terminals.cpp aaa att630 -cit220p d461 hp700_92 hp2622a diff --git a/src/mame/mess.flt b/src/mame/mess.flt index 70882b7fb27..fd17e9bda7a 100644 --- a/src/mame/mess.flt +++ b/src/mame/mess.flt @@ -125,6 +125,7 @@ channelf.cpp chaos.cpp chessmst.cpp chesstrv.cpp +cit220.cpp clcd.cpp cm1800.cpp cmi.cpp |