summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2016-05-27 10:42:51 -0400
committer R. Belmont <rb6502@users.noreply.github.com>2016-05-27 10:42:51 -0400
commitdae4fda326720cf76df486ff81b1a852134b1831 (patch)
tree853106b01b8db07f45a7a95c06fbf30c97f804fd
parent231f179d0c5878417097f4c8ee122ccb32c26d93 (diff)
parent092ac52b7aa20fcbffeb5d0a6cf2c9cc3b204c06 (diff)
Merge pull request #905 from felipesanches/alesis_qs7
[alesqs7] New skeleton driver: Alesis QS-7 musical keyboard.
-rw-r--r--scripts/target/mame/mess.lua1
-rw-r--r--src/mame/drivers/alesis_qs.cpp92
2 files changed, 93 insertions, 0 deletions
diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua
index 415a39f1897..5c94cea84c8 100644
--- a/scripts/target/mame/mess.lua
+++ b/scripts/target/mame/mess.lua
@@ -3035,6 +3035,7 @@ files {
createMESSProjects(_target, _subtarget, "skeleton")
files {
+ MAME_DIR .. "src/mame/drivers/alesis_qs.cpp",
MAME_DIR .. "src/mame/drivers/alphasma.cpp",
MAME_DIR .. "src/mame/drivers/ampro.cpp",
MAME_DIR .. "src/mame/drivers/amust.cpp",
diff --git a/src/mame/drivers/alesis_qs.cpp b/src/mame/drivers/alesis_qs.cpp
new file mode 100644
index 00000000000..e50e7aa3667
--- /dev/null
+++ b/src/mame/drivers/alesis_qs.cpp
@@ -0,0 +1,92 @@
+// license:GPL2+
+// copyright-holders:Felipe Sanches
+/******************************************************************
+
+ Alesis QS-series keyboards
+
+ Currently this skeleton covers only the Alesis QS-7
+ unit, but other keyboards in this series have similar
+ hardware caracteristics.
+
+ Author: Felipe Correa da Silva Sanches <juca@members.fsf.org>
+
+*******************************************************************/
+
+#include "emu.h"
+#include "cpu/h8/h83048.h"
+//#include "sound/alesis_qs.h"
+
+class qs_state : public driver_device
+{
+public:
+ qs_state(const machine_config &mconfig, device_type type, const char *tag)
+ : driver_device(mconfig, type, tag),
+ m_maincpu(*this, "maincpu")
+ { }
+
+protected:
+ required_device<cpu_device> m_maincpu;
+};
+
+/* Input ports */
+static INPUT_PORTS_START( qs7 )
+// PORT_START("COL1")
+// PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_)
+// PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_)
+// PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_)
+// PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_)
+// PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_)
+// PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_)
+// PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_)
+// PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_)
+INPUT_PORTS_END
+
+static ADDRESS_MAP_START( qs7_prog_map, AS_PROGRAM, 16, qs_state )
+ ADDRESS_MAP_GLOBAL_MASK(0x3ffff)
+ AM_RANGE(0x00000, 0x3ffff) AM_ROM
+ADDRESS_MAP_END
+
+static MACHINE_CONFIG_START( qs7, qs_state )
+ /* basic machine hardware */
+ MCFG_CPU_ADD("maincpu", H83048, XTAL_10MHz) /* FIX-ME! Actual CPU is H8/510 and XTAL value is a guess */
+ MCFG_CPU_PROGRAM_MAP(qs7_prog_map)
+
+ //MCFG_ALESIS_KEYSCAN_ASIC_ADD("keyscan")
+
+ /* Alesis Sound Generator ASIC */
+ //MCFG_ALESIS_SG_ASIC_ADD("sndgen")
+
+ /* Alesis Sound Effects Processor ASIC */
+ //MCFG_ALESIS_FX_ASIC_ADD("sfx")
+
+ /* video hardware */
+ //TODO: add LCD display controller here
+
+ /* sound hardware */
+ //MCFG_SPEAKER_STANDARD_STEREO("stereo")
+ //MCFG_ALESIS_QS_SERIES_ADD("sound", SND_CLOCK)
+ //MCFG_SOUND_ROUTE(ALL_OUTPUTS, "stereo", 1.0)
+
+ /* Interfaces */
+ //MCFG_PCMCIA_ADD("pcmcia")
+ //MIDI
+ //RS232
+MACHINE_CONFIG_END
+
+ROM_START( alesqs7 )
+ ROM_REGION( 0x80000, "maincpu", 0 )
+ ROM_LOAD( "2-31-0069_q7_v1.02_alesis_sp_09_12_96_cs_dbcc.u18", 0x00000, 0x80000, CRC(6e5404cb) SHA1(f00598b66ab7a83b16105cbb73e09c66ce3493a7) )
+
+// ROM_REGION( 0x200000, "sound", 0 ) /* Samples ROMs (2Mbyte each) */
+// ROM_LOAD( "?.u?", 0x00000, 0x200000, NO_DUMP )
+// ROM_LOAD( "?.u?", 0x00000, 0x200000, NO_DUMP )
+// ROM_LOAD( "?.u?", 0x00000, 0x200000, NO_DUMP )
+// ROM_LOAD( "?.u?", 0x00000, 0x200000, NO_DUMP )
+// ROM_LOAD( "?.u?", 0x00000, 0x200000, NO_DUMP )
+// ROM_LOAD( "?.u?", 0x00000, 0x200000, NO_DUMP )
+// ROM_LOAD( "?.u?", 0x00000, 0x200000, NO_DUMP )
+// ROM_LOAD( "?.u?", 0x00000, 0x200000, NO_DUMP )
+ROM_END
+
+/* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */
+COMP( 1996, alesqs7, 0, 0, qs7, qs7, driver_device, 0, "Alesis", "Alesis QS7 musical keyboard", MACHINE_IS_SKELETON )