From 0f4993e74d47d86ffb68db5f24fd3267294cd2d1 Mon Sep 17 00:00:00 2001 From: angelosa Date: Mon, 18 May 2026 13:04:56 +0200 Subject: skeleton/alesis_qs.cpp: move as alesis/qs.cpp --- src/mame/alesis/qs.cpp | 105 ++++++++++++++++++++++++++++++++++++++++ src/mame/mame.lst | 6 +-- src/mame/skeleton/alesis_qs.cpp | 105 ---------------------------------------- 3 files changed, 108 insertions(+), 108 deletions(-) create mode 100644 src/mame/alesis/qs.cpp delete mode 100644 src/mame/skeleton/alesis_qs.cpp diff --git a/src/mame/alesis/qs.cpp b/src/mame/alesis/qs.cpp new file mode 100644 index 00000000000..73fe9aa2683 --- /dev/null +++ b/src/mame/alesis/qs.cpp @@ -0,0 +1,105 @@ +// 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 + +*******************************************************************/ + +#include "emu.h" +#include "cpu/h8500/h8510.h" +//#include "sound/alesis_qs.h" + + +namespace { + +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") + { } + + void qs7(machine_config &config); + +private: + void qs7_prog_map(address_map &map) ATTR_COLD; + + required_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 + +void qs_state::qs7_prog_map(address_map &map) +{ + map(0x00000, 0x3ffff).mirror(0x40000).rom().region("program", 0); +} + +void qs_state::qs7(machine_config &config) +{ + /* basic machine hardware */ + HD6415108(config, m_maincpu, 20_MHz_XTAL); + m_maincpu->set_addrmap(AS_PROGRAM, &qs_state::qs7_prog_map); + + //ALESIS_KEYSCAN(config, "keyscan", 20_MHz_XTAL / 2 / 8); + + /* Alesis Sound Generator ASIC */ + //ALESIS_SG(config, "sndgen"); + + /* Alesis Sound Effects Processor ASIC */ + //ALESIS_FXCHIP(config, "sfx", 7.056_MHz_XTAL); + + /* video hardware */ + //TODO: add LCD display controller here + + /* sound hardware */ + //SPEAKER(config, "speaker", 2).front(); + //alesis_qs_series_device &sound(ALESIS_QS_SERIES(config, "sound", SND_CLOCK)); + //sound.add_route(0, "speaker", 1.0, 0); + //sound.add_route(1, "speaker", 1.0, 1); + + /* Interfaces */ + //PCMCIA + //MIDI + //RS232 +} + +// XTALs: 20 MHz (H8/510), 7.056 MHz (FXCHIP), 14.7456 MHz +ROM_START( alesqs7 ) + ROM_REGION16_BE( 0x80000, "program", 0 ) + ROM_LOAD16_WORD_SWAP( "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 + +} // anonymous namespace + + +// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS +COMP( 1996, alesqs7, 0, 0, qs7, qs7, qs_state, empty_init, "Alesis", "Alesis QS7 musical keyboard", MACHINE_NO_SOUND | MACHINE_NOT_WORKING ) diff --git a/src/mame/mame.lst b/src/mame/mame.lst index 6bbd8693301..11d59d428cf 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -590,6 +590,9 @@ sr16 midifex midiverb +@source:alesis/qs.cpp +alesqs7 + @source:alliedleisure/ace.cpp ace @@ -43880,9 +43883,6 @@ airbase99 @source:skeleton/alcat7100.cpp alcat7100 -@source:skeleton/alesis_qs.cpp -alesqs7 - @source:skeleton/alphasma.cpp asma2k asmapro diff --git a/src/mame/skeleton/alesis_qs.cpp b/src/mame/skeleton/alesis_qs.cpp deleted file mode 100644 index 73fe9aa2683..00000000000 --- a/src/mame/skeleton/alesis_qs.cpp +++ /dev/null @@ -1,105 +0,0 @@ -// 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 - -*******************************************************************/ - -#include "emu.h" -#include "cpu/h8500/h8510.h" -//#include "sound/alesis_qs.h" - - -namespace { - -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") - { } - - void qs7(machine_config &config); - -private: - void qs7_prog_map(address_map &map) ATTR_COLD; - - required_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 - -void qs_state::qs7_prog_map(address_map &map) -{ - map(0x00000, 0x3ffff).mirror(0x40000).rom().region("program", 0); -} - -void qs_state::qs7(machine_config &config) -{ - /* basic machine hardware */ - HD6415108(config, m_maincpu, 20_MHz_XTAL); - m_maincpu->set_addrmap(AS_PROGRAM, &qs_state::qs7_prog_map); - - //ALESIS_KEYSCAN(config, "keyscan", 20_MHz_XTAL / 2 / 8); - - /* Alesis Sound Generator ASIC */ - //ALESIS_SG(config, "sndgen"); - - /* Alesis Sound Effects Processor ASIC */ - //ALESIS_FXCHIP(config, "sfx", 7.056_MHz_XTAL); - - /* video hardware */ - //TODO: add LCD display controller here - - /* sound hardware */ - //SPEAKER(config, "speaker", 2).front(); - //alesis_qs_series_device &sound(ALESIS_QS_SERIES(config, "sound", SND_CLOCK)); - //sound.add_route(0, "speaker", 1.0, 0); - //sound.add_route(1, "speaker", 1.0, 1); - - /* Interfaces */ - //PCMCIA - //MIDI - //RS232 -} - -// XTALs: 20 MHz (H8/510), 7.056 MHz (FXCHIP), 14.7456 MHz -ROM_START( alesqs7 ) - ROM_REGION16_BE( 0x80000, "program", 0 ) - ROM_LOAD16_WORD_SWAP( "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 - -} // anonymous namespace - - -// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS -COMP( 1996, alesqs7, 0, 0, qs7, qs7, qs_state, empty_init, "Alesis", "Alesis QS7 musical keyboard", MACHINE_NO_SOUND | MACHINE_NOT_WORKING ) -- cgit v1.2.3