mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
sc1: is not sc1, rom matches slc1 by 90%, keypad functions same as slc1 (nw)
This commit is contained in:
parent
384dbc865b
commit
6b430378e1
@ -2,16 +2,14 @@
|
||||
// copyright-holders:Sandro Ronco
|
||||
/***************************************************************************
|
||||
|
||||
Schachcomputer SC 1 driver
|
||||
|
||||
VEB Mikroelektronik's 1st chess computer. It was canceled before wide release.
|
||||
This appears to be a prototype of SLC 1, it's definitely not VEB SC 1.
|
||||
|
||||
TODO:
|
||||
- speaker, it's very noisy if hooked up as it is now, missing enable-bit?
|
||||
it still toggles matrix d1 if T(tone off) is pressed
|
||||
- LEDs, they're not on digit d7
|
||||
- merge with slc1.cpp? but hardware differs too much
|
||||
- any way to access the "Lern" part?
|
||||
- speaker, it's very noisy if hooked up as it is now
|
||||
- LED(s)? they're not on digit d7
|
||||
- 7seg sometimes flashes
|
||||
- setting level doesn't work? game should boot with "PS 1"
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
@ -27,20 +25,19 @@ TODO:
|
||||
|
||||
namespace {
|
||||
|
||||
class sc1_state : public driver_device
|
||||
class slc1p_state : public driver_device
|
||||
{
|
||||
public:
|
||||
sc1_state(const machine_config &mconfig, device_type type, const char *tag) :
|
||||
slc1p_state(const machine_config &mconfig, device_type type, const char *tag) :
|
||||
driver_device(mconfig, type, tag),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_pio(*this, "z80pio"),
|
||||
m_dac(*this, "dac"),
|
||||
m_keypad(*this, "LINE%u", 1),
|
||||
m_digits(*this, "digit%u", 0U),
|
||||
m_leds(*this, "led%u", 0U)
|
||||
m_digits(*this, "digit%u", 0U)
|
||||
{ }
|
||||
|
||||
void sc1(machine_config &config);
|
||||
void slc1p(machine_config &config);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
@ -52,10 +49,9 @@ private:
|
||||
required_ioport_array<8> m_keypad;
|
||||
|
||||
output_finder<4> m_digits;
|
||||
output_finder<2> m_leds;
|
||||
|
||||
void sc1_io(address_map &map);
|
||||
void sc1_mem(address_map &map);
|
||||
void slc1p_io(address_map &map);
|
||||
void slc1p_mem(address_map &map);
|
||||
|
||||
uint8_t m_matrix;
|
||||
|
||||
@ -64,10 +60,9 @@ private:
|
||||
DECLARE_READ8_MEMBER(pio_port_b_r);
|
||||
};
|
||||
|
||||
void sc1_state::machine_start()
|
||||
void slc1p_state::machine_start()
|
||||
{
|
||||
m_digits.resolve();
|
||||
m_leds.resolve();
|
||||
|
||||
m_matrix = 0;
|
||||
save_item(NAME(m_matrix));
|
||||
@ -79,7 +74,7 @@ void sc1_state::machine_start()
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
WRITE8_MEMBER(sc1_state::pio_port_a_w)
|
||||
WRITE8_MEMBER(slc1p_state::pio_port_a_w)
|
||||
{
|
||||
// digit segment data
|
||||
uint8_t digit = bitswap<8>(data,3,4,6,0,1,2,7,5) & 0x7f;
|
||||
@ -101,7 +96,7 @@ WRITE8_MEMBER(sc1_state::pio_port_a_w)
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
WRITE8_MEMBER(sc1_state::matrix_w)
|
||||
WRITE8_MEMBER(slc1p_state::matrix_w)
|
||||
{
|
||||
// d1: speaker out
|
||||
//m_dac->write(BIT(data, 1));
|
||||
@ -110,7 +105,7 @@ WRITE8_MEMBER(sc1_state::matrix_w)
|
||||
m_matrix = data;
|
||||
}
|
||||
|
||||
READ8_MEMBER(sc1_state::pio_port_b_r)
|
||||
READ8_MEMBER(slc1p_state::pio_port_b_r)
|
||||
{
|
||||
uint8_t data = 0;
|
||||
|
||||
@ -123,75 +118,75 @@ READ8_MEMBER(sc1_state::pio_port_b_r)
|
||||
}
|
||||
|
||||
|
||||
void sc1_state::sc1_mem(address_map &map)
|
||||
void slc1p_state::slc1p_mem(address_map &map)
|
||||
{
|
||||
map.unmap_value_high();
|
||||
map(0x0000, 0x0fff).rom();
|
||||
map(0x4000, 0x43ff).ram();
|
||||
}
|
||||
|
||||
void sc1_state::sc1_io(address_map &map)
|
||||
void slc1p_state::slc1p_io(address_map &map)
|
||||
{
|
||||
map.unmap_value_high();
|
||||
map.global_mask(0xff);
|
||||
map(0x80, 0x83).rw(m_pio, FUNC(z80pio_device::read_alt), FUNC(z80pio_device::write_alt));
|
||||
map(0xfc, 0xfc).w(FUNC(sc1_state::matrix_w));
|
||||
map(0xfc, 0xfc).w(FUNC(slc1p_state::matrix_w));
|
||||
}
|
||||
|
||||
|
||||
/* Input ports */
|
||||
|
||||
static INPUT_PORTS_START( sc1 )
|
||||
static INPUT_PORTS_START( slc1p )
|
||||
PORT_START("LINE1")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_UNUSED)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("D4") PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD) PORT_CODE(KEYCODE_D)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("D4 T") PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD) PORT_CODE(KEYCODE_D)
|
||||
|
||||
PORT_START("LINE2")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("B2") PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD) PORT_CODE(KEYCODE_B)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("F6") PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD) PORT_CODE(KEYCODE_F)
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("B2 S") PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD) PORT_CODE(KEYCODE_B)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("F6 K") PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD) PORT_CODE(KEYCODE_F)
|
||||
|
||||
PORT_START("LINE3")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("C3") PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD) PORT_CODE(KEYCODE_C)
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("C3 L") PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD) PORT_CODE(KEYCODE_C)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("G7") PORT_CODE(KEYCODE_7) PORT_CODE(KEYCODE_7_PAD) PORT_CODE(KEYCODE_G)
|
||||
|
||||
PORT_START("LINE4")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("A1") PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_CODE(KEYCODE_A)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("E5") PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD) PORT_CODE(KEYCODE_E)
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("A1 B") PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_CODE(KEYCODE_A)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("E5 D") PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD) PORT_CODE(KEYCODE_E)
|
||||
|
||||
PORT_START("LINE5")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("H8") PORT_CODE(KEYCODE_8) PORT_CODE(KEYCODE_8_PAD) PORT_CODE(KEYCODE_H)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("CE") PORT_CODE(KEYCODE_R)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("C") PORT_CODE(KEYCODE_R)
|
||||
|
||||
PORT_START("LINE6")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("K") PORT_CODE(KEYCODE_K)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("ENT") PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD)
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_UNUSED)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("A") PORT_CODE(KEYCODE_O)
|
||||
|
||||
PORT_START("LINE7")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("P") PORT_CODE(KEYCODE_O)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("W/S") PORT_CODE(KEYCODE_W)
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_UNUSED)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD)
|
||||
|
||||
PORT_START("LINE8")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("T") PORT_CODE(KEYCODE_T)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("C") PORT_CODE(KEYCODE_DEL) PORT_CODE(KEYCODE_BACKSPACE)
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_UNUSED)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("St") PORT_CODE(KEYCODE_S) PORT_CODE(KEYCODE_BACKSPACE) PORT_CODE(KEYCODE_DEL)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
/* Machine config */
|
||||
|
||||
void sc1_state::sc1(machine_config &config)
|
||||
void slc1p_state::slc1p(machine_config &config)
|
||||
{
|
||||
/* basic machine hardware */
|
||||
Z80(config, m_maincpu, 9.8304_MHz_XTAL/4); // U880 Z80 clone
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &sc1_state::sc1_mem);
|
||||
m_maincpu->set_addrmap(AS_IO, &sc1_state::sc1_io);
|
||||
Z80(config, m_maincpu, 2500000); // U880 Z80 clone
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &slc1p_state::slc1p_mem);
|
||||
m_maincpu->set_addrmap(AS_IO, &slc1p_state::slc1p_io);
|
||||
|
||||
/* video hardware */
|
||||
config.set_default_layout(layout_sc1);
|
||||
|
||||
/* devices */
|
||||
Z80PIO(config, m_pio, 9.8304_MHz_XTAL/4);
|
||||
m_pio->out_pa_callback().set(FUNC(sc1_state::pio_port_a_w));
|
||||
m_pio->in_pb_callback().set(FUNC(sc1_state::pio_port_b_r));
|
||||
Z80PIO(config, m_pio, 2500000);
|
||||
m_pio->out_pa_callback().set(FUNC(slc1p_state::pio_port_a_w));
|
||||
m_pio->in_pb_callback().set(FUNC(slc1p_state::pio_port_b_r));
|
||||
|
||||
/* sound hardware */
|
||||
SPEAKER(config, "speaker").front_center();
|
||||
@ -202,7 +197,7 @@ void sc1_state::sc1(machine_config &config)
|
||||
|
||||
/* ROM definition */
|
||||
|
||||
ROM_START( sc1 )
|
||||
ROM_START( slc1p )
|
||||
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
|
||||
ROM_LOAD( "sc1.rom", 0x0000, 0x1000, CRC(26965b23) SHA1(01568911446eda9f05ec136df53da147b7c6f2bf))
|
||||
ROM_END
|
||||
@ -212,5 +207,5 @@ ROM_END
|
||||
|
||||
/* Driver */
|
||||
|
||||
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS
|
||||
COMP( 1981, sc1, 0, 0, sc1, sc1, sc1_state, empty_init, "VEB Mikroelektronik Erfurt", "Schachcomputer SC 1", MACHINE_NOT_WORKING | MACHINE_NO_SOUND | MACHINE_SUPPORTS_SAVE )
|
||||
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS
|
||||
COMP( 1989, slc1p, slc1, 0, slc1p, slc1p, slc1p_state, empty_init, "Dr. Dieter Scheuschner", "Schach- und Lerncomputer SLC 1 (prototype?)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND | MACHINE_SUPPORTS_SAVE )
|
||||
|
@ -9,6 +9,9 @@ Fidelity Chess Challenger 10.
|
||||
|
||||
3 versions known: initial version, revision E, revision EP.
|
||||
|
||||
Schachcomputer SC 1 was canceled before wide release, it's assumed to
|
||||
be on similar hardware(but PCB photos show 10 ROM chips instead of 9).
|
||||
|
||||
keypad legend:
|
||||
|
||||
R - Rückstellen (reset)
|
||||
|
@ -299,4 +299,4 @@ ROM_END
|
||||
|
||||
|
||||
/* YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME */
|
||||
COMP( 1989, slc1, 0, 0, slc1, slc1, slc1_state, empty_init, "Dr. Dieter Scheuschner", "SLC-1" , 0 )
|
||||
COMP( 1989, slc1, 0, 0, slc1, slc1, slc1_state, empty_init, "Dr. Dieter Scheuschner", "Schach- und Lerncomputer SLC 1", 0 )
|
||||
|
@ -3,38 +3,18 @@
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="static_orange"><rect><color red="1.0" green="0.75" blue="0.1" /></rect></element>
|
||||
|
||||
<element name="digit" defstate="0">
|
||||
<led7seg><color red="1.0" green="1.0" blue="0.1" /></led7seg>
|
||||
<led7seg><color red="1.0" green="0.1" blue="0.15" /></led7seg>
|
||||
</element>
|
||||
|
||||
<element name="led" defstate="0">
|
||||
<disk state="1"><color red="1.0" green="0.0" blue="0.0" /></disk>
|
||||
<disk state="0"><color red="0.15" green="0.0" blue="0.0" /> </disk>
|
||||
</element>
|
||||
|
||||
<element name="text_schach"><text string="SCHACH" align="1"><color red="0.8" green="0.8" blue="0.8" /></text></element>
|
||||
<element name="text_matt"><text string="MATT" align="1"><color red="0.8" green="0.8" blue="0.8" /></text></element>
|
||||
|
||||
|
||||
<!-- build screen -->
|
||||
|
||||
<view name="Internal Layout">
|
||||
<bounds left="5" right="265" top="0" bottom="165" />
|
||||
<bezel name="digit0" element="digit"><bounds x="0" y="0" width="10" height="15" /></bezel>
|
||||
<bezel name="digit1" element="digit"><bounds x="10" y="0" width="10" height="15" /></bezel>
|
||||
<bezel name="digit2" element="digit"><bounds x="20" y="0" width="10" height="15" /></bezel>
|
||||
<bezel name="digit3" element="digit"><bounds x="30" y="0" width="10" height="15" /></bezel>
|
||||
|
||||
<bezel name="digit0" element="digit"><bounds x="10" y="10" width="50" height="80" /></bezel>
|
||||
<bezel name="digit1" element="digit"><bounds x="70" y="10" width="50" height="80" /></bezel>
|
||||
<bezel name="digit2" element="digit"><bounds x="150" y="10" width="50" height="80" /></bezel>
|
||||
<bezel name="digit3" element="digit"><bounds x="210" y="10" width="50" height="80" /></bezel>
|
||||
|
||||
<bezel element="static_orange"><bounds x="5" y="0" width="120" height="100" /><color alpha="0.5" /></bezel>
|
||||
<bezel element="static_orange"><bounds x="145" y="0" width="120" height="100" /><color alpha="0.5" /></bezel>
|
||||
|
||||
<bezel name="led0" element="led"><bounds x="240" y="140" width="20" height="20" /></bezel>
|
||||
<bezel name="led1" element="led"><bounds x="240" y="110" width="20" height="20" /></bezel>
|
||||
|
||||
<bezel element="text_matt"><bounds x="170" y="110" width="100" height="20" /></bezel>
|
||||
<bezel element="text_schach"><bounds x="170" y="140" width="100" height="20" /></bezel>
|
||||
</view>
|
||||
</mamelayout>
|
||||
|
@ -34118,7 +34118,7 @@ sbugger // (c) 1981 Game-A-Tron
|
||||
sbuggera // (c) 1981 Game-A-Tron
|
||||
|
||||
@source:sc1.cpp
|
||||
sc1 //
|
||||
slc1p
|
||||
|
||||
@source:sc2.cpp
|
||||
sc2 //
|
||||
|
Loading…
Reference in New Issue
Block a user