summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-12-31 21:32:50 -0500
committer AJR <ajrhacker@users.noreply.github.com>2019-12-31 21:32:50 -0500
commit2240929c28b8ce6a4758b1da368fbcf470de543d (patch)
tree08e4693053229fa5c63263c2cb01e7774692f782
parent6d9ed515e8b6fd9c6f7af99cc7f50ce7a038969e (diff)
New machines marked as NOT_WORKING
---------------------------------- ADM 12 [Bitsavers]
-rw-r--r--scripts/target/mame/mess.lua12
-rw-r--r--src/emu/xtal.cpp1
-rw-r--r--src/mame/drivers/adm11.cpp159
-rw-r--r--src/mame/mame.lst3
-rw-r--r--src/mame/mess.flt1
5 files changed, 173 insertions, 3 deletions
diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua
index 44d51e4577d..3d6b57cea6d 100644
--- a/scripts/target/mame/mess.lua
+++ b/scripts/target/mame/mess.lua
@@ -1172,6 +1172,7 @@ function linkProjects_mame_mess(_target, _subtarget)
"kurzweil",
"kyocera",
"leapfrog",
+ "lsi",
"luxor",
"magnavox",
"makerbot",
@@ -2604,6 +2605,14 @@ files {
MAME_DIR .. "src/mame/drivers/leapfrog_leappad.cpp",
}
+createMESSProjects(_target, _subtarget, "lsi")
+files {
+ MAME_DIR .. "src/mame/drivers/adm11.cpp",
+ MAME_DIR .. "src/mame/drivers/adm23.cpp",
+ MAME_DIR .. "src/mame/drivers/adm31.cpp",
+ MAME_DIR .. "src/mame/drivers/adm36.cpp",
+}
+
createMESSProjects(_target, _subtarget, "luxor")
files {
MAME_DIR .. "src/mame/drivers/abc80.cpp",
@@ -4010,9 +4019,6 @@ files {
MAME_DIR .. "src/mame/drivers/aaa.cpp",
MAME_DIR .. "src/mame/drivers/acd.cpp",
MAME_DIR .. "src/mame/drivers/aceex.cpp",
- MAME_DIR .. "src/mame/drivers/adm23.cpp",
- MAME_DIR .. "src/mame/drivers/adm31.cpp",
- MAME_DIR .. "src/mame/drivers/adm36.cpp",
MAME_DIR .. "src/mame/drivers/akaiax80.cpp",
MAME_DIR .. "src/mame/drivers/alcat7100.cpp",
MAME_DIR .. "src/mame/drivers/alesis_qs.cpp",
diff --git a/src/emu/xtal.cpp b/src/emu/xtal.cpp
index 9c4081a1a3d..fe5c8b2895c 100644
--- a/src/emu/xtal.cpp
+++ b/src/emu/xtal.cpp
@@ -228,6 +228,7 @@ const double XTAL::known_xtals[] = {
15'700'000, /* 15.7_MHz_XTAL Motogonki */
15'897'600, /* 15.8976_MHz_XTAL IAI Swyft */
15'920'000, /* 15.92_MHz_XTAL HP Integral PC */
+ 15'930'000, /* 15.93_MHz_XTAL ADM 12 */
15'974'400, /* 15.9744_MHz_XTAL Osborne 1 (9600 * 52 * 32) */
16'000'000, /* 16_MHz_XTAL Extremely common, used on 100's of PCBs */
16'097'280, /* 16.09728_MHz_XTAL DEC VT240 (1024 * 262 * 60) */
diff --git a/src/mame/drivers/adm11.cpp b/src/mame/drivers/adm11.cpp
new file mode 100644
index 00000000000..d1b3a2370fb
--- /dev/null
+++ b/src/mame/drivers/adm11.cpp
@@ -0,0 +1,159 @@
+// license:BSD-3-Clause
+// copyright-holders:AJR
+/****************************************************************************
+
+ Skeleton driver for ADM 11 and related terminals by Lear Siegler, Inc.
+
+ * ADM 11 (June 1983): LSI's first terminal to use the "High Touch"
+ enclosure shared by the rest of its family and other LSI terminals.
+ Its detachable typewriter-style keyboard has only 4 function keys
+ (8 with shifting). Display is one 24x80 page plus a status line.
+ Font supports "business graphics" as well as ASCII characters.
+ * ADM 12 (March 1984): Expanded version of ADM 11 implementing block
+ mode and many more editing functions. 2 pages of text are available
+ in 80x24 mode, and there are also 80x48 and 158x24 modes.
+ * ADM 11G & ADM 12G (March 1984): ADM 11 and ADM 12 enhanced with
+ Tektronix Plot 10-like graphics.
+ * ADM 1178 (March 1984): Emulates the keyboard and communications of the
+ IBM 3278, though an external protocol converter is also required for
+ network compatibility.
+ * ADM 1278 (March 1984): Block mode version of the ADM 1178.
+ * ADM 12plus (February 1985): Later version of the ADM 12, with 132-
+ column and horizontal split display options. Up to 4 pages of display
+ memory are supported.
+ * ADM 11plus (June 1985): Later version of ADM 11 with more function
+ keys and character and line insertion/deletion.
+
+****************************************************************************/
+
+#include "emu.h"
+//#include "bus/rs232/rs232.h"
+#include "cpu/mcs51/mcs51.h"
+#include "machine/eeprompar.h"
+#include "video/scn2674.h"
+#include "screen.h"
+
+class adm11_state : public driver_device
+{
+public:
+ adm11_state(const machine_config &mconfig, device_type type, const char *tag)
+ : driver_device(mconfig, type, tag)
+ , m_maincpu(*this, "maincpu")
+ , m_avdc(*this, "avdc")
+ , m_chargen(*this, "chargen")
+ , m_mbc(false)
+ {
+ }
+
+ void adm12(machine_config &config);
+
+protected:
+ virtual void machine_start() override;
+
+private:
+ void prog_map(address_map &map);
+ void ext_map(address_map &map);
+ void display_map(address_map &map);
+
+ SCN2674_DRAW_CHARACTER_MEMBER(draw_character);
+ DECLARE_WRITE_LINE_MEMBER(mbc_w);
+
+ u8 p1_r();
+ void p1_w(u8 data);
+ void p3_w(u8 data);
+
+ required_device<mcs51_cpu_device> m_maincpu;
+ required_device<scn2674_device> m_avdc;
+ required_region_ptr<u8> m_chargen;
+
+ bool m_mbc;
+};
+
+
+void adm11_state::machine_start()
+{
+ save_item(NAME(m_mbc));
+}
+
+SCN2674_DRAW_CHARACTER_MEMBER(adm11_state::draw_character)
+{
+}
+
+WRITE_LINE_MEMBER(adm11_state::mbc_w)
+{
+ m_mbc = state;
+}
+
+u8 adm11_state::p1_r()
+{
+ // Bit 0 low = display busy?
+ return 0xfe | (m_mbc ? 0 : 1);
+}
+
+void adm11_state::p1_w(u8 data)
+{
+}
+
+void adm11_state::p3_w(u8 data)
+{
+}
+
+void adm11_state::prog_map(address_map &map)
+{
+ map(0x0000, 0x1fff).rom().region("program", 0);
+}
+
+void adm11_state::ext_map(address_map &map)
+{
+ map(0x0000, 0x07ff).ram();
+ map(0x2000, 0x21ff).rw("eeprom", FUNC(eeprom_parallel_28xx_device::read), FUNC(eeprom_parallel_28xx_device::write));
+ map(0x6000, 0x7fff).ram().share("display");
+ map(0xe000, 0xe007).rw(m_avdc, FUNC(scn2674_device::read), FUNC(scn2674_device::write));
+}
+
+void adm11_state::display_map(address_map &map)
+{
+ map.global_mask(0x1fff);
+ map(0x0000, 0x1fff).ram().share("display");
+}
+
+
+static INPUT_PORTS_START(adm12)
+INPUT_PORTS_END
+
+void adm11_state::adm12(machine_config &config)
+{
+ I8031(config, m_maincpu, 11.0592_MHz_XTAL); // P8031AH
+ m_maincpu->set_addrmap(AS_PROGRAM, &adm11_state::prog_map);
+ m_maincpu->set_addrmap(AS_IO, &adm11_state::ext_map);
+ m_maincpu->port_in_cb<1>().set(FUNC(adm11_state::p1_r));
+ m_maincpu->port_out_cb<1>().set(FUNC(adm11_state::p1_w));
+ m_maincpu->port_out_cb<3>().set(FUNC(adm11_state::p3_w));
+
+ EEPROM_2804(config, "eeprom"); // X2804AP
+
+ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
+ screen.set_color(rgb_t::green());
+ screen.set_raw(15.93_MHz_XTAL, 900, 0, 720, 295, 0, 275); // 17.7 kHz horizontal
+ screen.set_screen_update("avdc", FUNC(scn2674_device::screen_update));
+
+ SCN2674(config, m_avdc, 15.93_MHz_XTAL / 9); // SCN2674B
+ m_avdc->set_screen("screen");
+ m_avdc->set_character_width(9); // 6 in 158-column mode?
+ m_avdc->set_addrmap(0, &adm11_state::display_map);
+ m_avdc->set_display_callback(FUNC(adm11_state::draw_character));
+ m_avdc->breq_callback().set_inputline(m_maincpu, MCS51_INT0_LINE);
+ m_avdc->intr_callback().set_inputline(m_maincpu, MCS51_INT1_LINE);
+ m_avdc->mbc_callback().set(FUNC(adm11_state::mbc_w));
+}
+
+// "MEM2764" silkscreened next to all memories, only one of which is an actual 2764 (most are SY2128-4 SRAMs)
+ROM_START(adm12)
+ ROM_REGION(0x2000, "program", 0)
+ ROM_LOAD("u13.bin", 0x0000, 0x2000, CRC(3c928176) SHA1(dd741c620da2ced9979456296c2af0387461cdf1)) // MBM2764-30
+
+ ROM_REGION(0x1000, "chargen", 0)
+ ROM_LOAD("u35.bin", 0x0000, 0x1000, CRC(66d7bc44) SHA1(cd839839f29657207098d85900cb570285be91a6)) // HN462732-P
+ROM_END
+
+COMP(1984, adm12, 0, 0, adm12, adm12, adm11_state, empty_init, "Lear Siegler", "ADM 12", MACHINE_IS_SKELETON)
diff --git a/src/mame/mame.lst b/src/mame/mame.lst
index 280c4302c28..2a47140491c 100644
--- a/src/mame/mame.lst
+++ b/src/mame/mame.lst
@@ -925,6 +925,9 @@ viruscl // (c) 2004 Access GmbH
@source:adam.cpp
adam // Coleco Adam
+@source:adm11.cpp
+adm12 //
+
@source:adm23.cpp
adm23 //
diff --git a/src/mame/mess.flt b/src/mame/mess.flt
index 875b99e6db8..85e17e2ceab 100644
--- a/src/mame/mess.flt
+++ b/src/mame/mess.flt
@@ -24,6 +24,7 @@ acrnsys1.cpp
acrnsys.cpp
acvirus.cpp
adam.cpp
+adm11.cpp
adm23.cpp
adm31.cpp
adm36.cpp