New working systems

-------------------
Mephisto Europa [hap, Berger]
This commit is contained in:
hap 2023-12-04 17:03:19 +01:00
parent f24bb5d947
commit 49ef55694f
3 changed files with 795 additions and 0 deletions

View File

@ -0,0 +1,223 @@
// license:BSD-3-Clause
// copyright-holders:hap
// thanks-to:Berger
/*******************************************************************************
Mephisto Europa (aka Schachschule)
Single-chip chess computer, the chess engine is by Frans Morsch.
NOTE: Press the STOP button to turn the power off, before exiting MAME. Otherwise,
NVRAM won't save properly.
Hardware notes:
- PCB label: 957&958-2, europa.H+G
- Hitachi HD63B01Y0, 8MHz resonator
- 8*8 chessboard buttons, 24 LEDs, piezo
Mephisto Europa A and Mephisto Marco Polo have the exact same MCU.
In the early 90s, it was also reproduced in Ukraine as Chess Computer-1 (ШК-1).
It has a typical yellow-brown PCB and Soviet discrete components, and they
sourced the official Mephisto MCU with the same E62 mask ROM serial.
*******************************************************************************/
#include "emu.h"
#include "cpu/m6800/m6801.h"
#include "machine/sensorboard.h"
#include "sound/dac.h"
#include "video/pwm.h"
#include "speaker.h"
// internal artwork
#include "mephisto_europa.lh"
namespace {
class europa_state : public driver_device
{
public:
europa_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_board(*this, "board"),
m_display(*this, "display"),
m_dac(*this, "dac"),
m_inputs(*this, "IN.%u", 0)
{ }
DECLARE_INPUT_CHANGED_MEMBER(on_button);
void europa(machine_config &config);
protected:
virtual void machine_start() override;
private:
// devices/pointers
required_device<hd6301y0_cpu_device> m_maincpu;
required_device<sensorboard_device> m_board;
required_device<pwm_display_device> m_display;
required_device<dac_bit_interface> m_dac;
required_ioport_array<3> m_inputs;
u16 m_inp_mux = 0;
// I/O handlers
template <int N> void leds_w(u8 data);
void control_w(u8 data);
u8 input_r();
void board_w(u8 data);
};
void europa_state::machine_start()
{
save_item(NAME(m_inp_mux));
}
/*******************************************************************************
I/O
*******************************************************************************/
INPUT_CHANGED_MEMBER(europa_state::on_button)
{
if (newval && m_maincpu->standby())
m_maincpu->pulse_input_line(INPUT_LINE_RESET, attotime::zero);
}
template <int N>
void europa_state::leds_w(u8 data)
{
// P10-P17, P30-P37, P40-P47: leds (direct)
m_display->write_row(N, ~data);
}
void europa_state::control_w(u8 data)
{
// P20,P21,P24: input mux (buttons)
m_inp_mux = (m_inp_mux & 0xff) | bitswap<3>(~data,4,1,0) << 8;
// P23: speaker out
m_dac->write(BIT(data, 3));
}
u8 europa_state::input_r()
{
// P50-P57: multiplexed inputs
u8 data = 0;
// read buttons
for (int i = 0; i < 3; i++)
if (BIT(m_inp_mux, i + 8))
data |= m_inputs[i]->read() & 0x3f;
// read chessboard
for (int i = 0; i < 8; i++)
if (BIT(m_inp_mux, i))
data |= m_board->read_file(i);
return ~data;
}
void europa_state::board_w(u8 data)
{
// P60-P67: input mux (chessboard)
m_inp_mux = (m_inp_mux & 0x700) | (data ^ 0xff);
}
/*******************************************************************************
Input Ports
*******************************************************************************/
static INPUT_PORTS_START( europa )
PORT_START("IN.0")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Y) PORT_NAME("PLAY")
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_X) PORT_NAME("POS")
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_M) PORT_NAME("MEM")
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_E) PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD) PORT_NAME("ENT")
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_W) PORT_NAME("White / Black")
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_L) PORT_NAME("LEV")
PORT_START("IN.1")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_NAME("Pawn")
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD) PORT_NAME("Knight")
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD) PORT_NAME("Bishop")
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD) PORT_NAME("Rook")
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD) PORT_NAME("Queen")
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD) PORT_NAME("King")
PORT_START("IN.2")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) PORT_CODE(KEYCODE_N) PORT_NAME("RES")
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_UNUSED)
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_S) PORT_NAME("STOP")
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_B) PORT_NAME("BOOK")
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_I) PORT_NAME("INFO")
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_H) PORT_NAME("HELP")
PORT_START("RESET")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_O) PORT_CHANGED_MEMBER(DEVICE_SELF, europa_state, on_button, 0) PORT_NAME("ON")
INPUT_PORTS_END
/*******************************************************************************
Machine Configs
*******************************************************************************/
void europa_state::europa(machine_config &config)
{
// basic machine hardware
HD6301Y0(config, m_maincpu, 8_MHz_XTAL);
m_maincpu->nvram_enable_backup(true);
m_maincpu->standby_cb().set(m_maincpu, FUNC(hd6301y0_cpu_device::nvram_set_battery));
m_maincpu->standby_cb().append([this](int state) { if (state) m_display->clear(); });
m_maincpu->out_p1_cb().set(FUNC(europa_state::leds_w<0>));
m_maincpu->out_p3_cb().set(FUNC(europa_state::leds_w<1>));
m_maincpu->out_p4_cb().set(FUNC(europa_state::leds_w<2>));
m_maincpu->out_p2_cb().set(FUNC(europa_state::control_w));
m_maincpu->in_p5_cb().set(FUNC(europa_state::input_r));
m_maincpu->out_p6_cb().set(FUNC(europa_state::board_w));
SENSORBOARD(config, m_board).set_type(sensorboard_device::BUTTONS);
m_board->init_cb().set(m_board, FUNC(sensorboard_device::preset_chess));
m_board->set_delay(attotime::from_msec(150));
m_board->set_nvram_enable(true);
// video hardware
PWM_DISPLAY(config, m_display).set_size(3, 8);
config.set_default_layout(layout_mephisto_europa);
// sound hardware
SPEAKER(config, "speaker").front_center();
DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25);
}
/*******************************************************************************
ROM Definitions
*******************************************************************************/
ROM_START( europa )
ROM_REGION( 0x4000, "maincpu", 0 )
ROM_LOAD("mephisto_hg-morsch_63b01y0e62f", 0x0000, 0x4000, CRC(eaa11f82) SHA1(95fae8dc063e4e4730d08fa894bea61d49ad39d4) )
ROM_END
} // anonymous namespace
/*******************************************************************************
Drivers
*******************************************************************************/
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS
SYST( 1988, europa, 0, 0, europa, europa, europa_state, empty_init, "Hegener + Glaser", "Mephisto Europa", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )

View File

@ -0,0 +1,569 @@
<?xml version="1.0"?>
<!--
license:CC0-1.0
-->
<mamelayout version="2">
<!-- define elements -->
<element name="led" defstate="0">
<rect state="1"><color red="1.0" green="0.1" blue="0.15" /></rect>
<rect state="0"><color red="0.1" green="0.01" blue="0.015" /></rect>
</element>
<element name="ledr" defstate="0">
<disk state="1"><color red="1.0" green="0.1" blue="0.15" /></disk>
<disk state="0"><color red="0.1" green="0.01" blue="0.015" /></disk>
</element>
<element name="ledg" defstate="0">
<disk state="1"><color red="0.1" green="1.0" blue="0.15" /></disk>
<disk state="0"><color red="0.01" green="0.1" blue="0.015" /></disk>
</element>
<element name="text_1">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="1"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_2">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="2"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_3">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="3"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_4">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="4"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_5">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="5"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_6">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="6"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_7">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="7"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_8">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="8"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_a">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="A"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_b">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="B"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_c">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="C"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_d">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="D"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_e">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="E"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_f">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="F"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_g">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="G"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_h">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="H"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<!-- sb board -->
<element name="blackb"><rect><color red="0.05" green="0.05" blue="0.05" /></rect></element>
<element name="cblack"><rect><color red="0.41" green="0.4" blue="0.39" /></rect></element>
<element name="cwhite"><rect><color red="0.81" green="0.8" blue="0.79" /></rect></element>
<element name="hlbb" defstate="0">
<text string=" "><bounds x="0" y="0" width="1" height="1" /></text>
<disk state="1">
<bounds x="0.12" y="0.12" width="0.76" height="0.76" />
<color red="0" green="0" blue="0" />
</disk>
</element>
<element name="piece" defstate="0">
<image file="chess/wp.svg" state="1"/>
<image file="chess/wn.svg" state="2"/>
<image file="chess/wb.svg" state="3"/>
<image file="chess/wr.svg" state="4"/>
<image file="chess/wq.svg" state="5"/>
<image file="chess/wk.svg" state="6"/>
<image file="chess/bp.svg" state="7"/>
<image file="chess/bn.svg" state="8"/>
<image file="chess/bb.svg" state="9"/>
<image file="chess/br.svg" state="10"/>
<image file="chess/bq.svg" state="11"/>
<image file="chess/bk.svg" state="12"/>
<!-- selected pieces -->
<image file="chess/wp.svg" state="13"><color alpha="0.5" /></image>
<image file="chess/wn.svg" state="14"><color alpha="0.5" /></image>
<image file="chess/wb.svg" state="15"><color alpha="0.5" /></image>
<image file="chess/wr.svg" state="16"><color alpha="0.5" /></image>
<image file="chess/wq.svg" state="17"><color alpha="0.5" /></image>
<image file="chess/wk.svg" state="18"><color alpha="0.5" /></image>
<image file="chess/bp.svg" state="19"><color alpha="0.5" /></image>
<image file="chess/bn.svg" state="20"><color alpha="0.5" /></image>
<image file="chess/bb.svg" state="21"><color alpha="0.5" /></image>
<image file="chess/br.svg" state="22"><color alpha="0.5" /></image>
<image file="chess/bq.svg" state="23"><color alpha="0.5" /></image>
<image file="chess/bk.svg" state="24"><color alpha="0.5" /></image>
</element>
<group name="sb_board">
<bounds x="-0.25" y="-0.25" width="80.5" height="80.5" />
<element ref="blackb"><bounds x="-0.25" y="-0.25" width="80.5" height="80.5" /></element>
<!-- squares (avoid seams) -->
<element ref="cwhite"><bounds x="0" y="0" width="11" height="11" /></element>
<element ref="cblack"><bounds x="10" y="0" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="20" y="0" width="11" height="11" /></element>
<element ref="cblack"><bounds x="30" y="0" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="40" y="0" width="11" height="11" /></element>
<element ref="cblack"><bounds x="50" y="0" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="60" y="0" width="11" height="11" /></element>
<element ref="cblack"><bounds x="70" y="0" width="10" height="11" /></element>
<element ref="cblack"><bounds x="0" y="10" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="10" y="10" width="11" height="11" /></element>
<element ref="cblack"><bounds x="20" y="10" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="30" y="10" width="11" height="11" /></element>
<element ref="cblack"><bounds x="40" y="10" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="50" y="10" width="11" height="11" /></element>
<element ref="cblack"><bounds x="60" y="10" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="70" y="10" width="10" height="11" /></element>
<element ref="cwhite"><bounds x="0" y="20" width="11" height="11" /></element>
<element ref="cblack"><bounds x="10" y="20" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="20" y="20" width="11" height="11" /></element>
<element ref="cblack"><bounds x="30" y="20" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="40" y="20" width="11" height="11" /></element>
<element ref="cblack"><bounds x="50" y="20" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="60" y="20" width="11" height="11" /></element>
<element ref="cblack"><bounds x="70" y="20" width="10" height="11" /></element>
<element ref="cblack"><bounds x="0" y="30" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="10" y="30" width="11" height="11" /></element>
<element ref="cblack"><bounds x="20" y="30" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="30" y="30" width="11" height="11" /></element>
<element ref="cblack"><bounds x="40" y="30" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="50" y="30" width="11" height="11" /></element>
<element ref="cblack"><bounds x="60" y="30" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="70" y="30" width="10" height="11" /></element>
<element ref="cwhite"><bounds x="0" y="40" width="11" height="11" /></element>
<element ref="cblack"><bounds x="10" y="40" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="20" y="40" width="11" height="11" /></element>
<element ref="cblack"><bounds x="30" y="40" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="40" y="40" width="11" height="11" /></element>
<element ref="cblack"><bounds x="50" y="40" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="60" y="40" width="11" height="11" /></element>
<element ref="cblack"><bounds x="70" y="40" width="10" height="11" /></element>
<element ref="cblack"><bounds x="0" y="50" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="10" y="50" width="11" height="11" /></element>
<element ref="cblack"><bounds x="20" y="50" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="30" y="50" width="11" height="11" /></element>
<element ref="cblack"><bounds x="40" y="50" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="50" y="50" width="11" height="11" /></element>
<element ref="cblack"><bounds x="60" y="50" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="70" y="50" width="10" height="11" /></element>
<element ref="cwhite"><bounds x="0" y="60" width="11" height="11" /></element>
<element ref="cblack"><bounds x="10" y="60" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="20" y="60" width="11" height="11" /></element>
<element ref="cblack"><bounds x="30" y="60" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="40" y="60" width="11" height="11" /></element>
<element ref="cblack"><bounds x="50" y="60" width="11" height="11" /></element>
<element ref="cwhite"><bounds x="60" y="60" width="11" height="11" /></element>
<element ref="cblack"><bounds x="70" y="60" width="10" height="11" /></element>
<element ref="cblack"><bounds x="0" y="70" width="11" height="10" /></element>
<element ref="cwhite"><bounds x="10" y="70" width="11" height="10" /></element>
<element ref="cblack"><bounds x="20" y="70" width="11" height="10" /></element>
<element ref="cwhite"><bounds x="30" y="70" width="11" height="10" /></element>
<element ref="cblack"><bounds x="40" y="70" width="11" height="10" /></element>
<element ref="cwhite"><bounds x="50" y="70" width="11" height="10" /></element>
<element ref="cblack"><bounds x="60" y="70" width="11" height="10" /></element>
<element ref="cwhite"><bounds x="70" y="70" width="10" height="10" /></element>
<!-- sensors, pieces -->
<repeat count="8">
<param name="y" start="0" increment="10" />
<param name="i" start="8" increment="-1" />
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x01"><bounds x="0" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x02"><bounds x="10" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x04"><bounds x="20" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x08"><bounds x="30" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x10"><bounds x="40" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x20"><bounds x="50" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x40"><bounds x="60" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x80"><bounds x="70" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element name="piece_a~i~" ref="piece"><bounds x="0" y="~y~" width="10" height="10" /></element>
<element name="piece_b~i~" ref="piece"><bounds x="10" y="~y~" width="10" height="10" /></element>
<element name="piece_c~i~" ref="piece"><bounds x="20" y="~y~" width="10" height="10" /></element>
<element name="piece_d~i~" ref="piece"><bounds x="30" y="~y~" width="10" height="10" /></element>
<element name="piece_e~i~" ref="piece"><bounds x="40" y="~y~" width="10" height="10" /></element>
<element name="piece_f~i~" ref="piece"><bounds x="50" y="~y~" width="10" height="10" /></element>
<element name="piece_g~i~" ref="piece"><bounds x="60" y="~y~" width="10" height="10" /></element>
<element name="piece_h~i~" ref="piece"><bounds x="70" y="~y~" width="10" height="10" /></element>
</repeat>
</group>
<!-- sb ui -->
<element name="hlub" defstate="0">
<rect state="1"><color red="0" green="0" blue="0" /></rect>
</element>
<element name="text_uit1"><text string="S.BOARD"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uit2"><text string="INTERFACE"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uib1"><text string="BOARD:"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uib2">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="RESET"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_uib3">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="CLEAR"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_uis1"><text string="SPAWN:"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uih1"><text string="HAND:"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uih2">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string="REMOVE"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_uiu1"><text string="UNDO:"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uiu2a">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string=" &lt;&lt;"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_uiu2b">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string=" &lt; "><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_uiu2c">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string=" &gt;"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_uiu2d">
<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
<text string=" &gt;&gt;"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_uiu3a" defstate="0">
<simplecounter maxstate="999" digits="1" align="2">
<color red="0.81" green="0.8" blue="0.79" />
</simplecounter>
</element>
<element name="text_uiu3b"><text string="/"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_uiu3c" defstate="0">
<simplecounter maxstate="999" digits="1" align="1">
<color red="0.81" green="0.8" blue="0.79" />
</simplecounter>
</element>
<group name="sb_ui">
<bounds x="0" y="0" width="10" height="80" />
<element ref="cblack"><bounds x="0" y="0" width="10" height="1" /></element>
<element ref="cblack"><bounds x="0" y="7" width="10" height="1" /></element>
<element ref="cblack"><bounds x="0" y="79" width="10" height="1" /></element>
<element ref="text_uit1"><bounds x="0" y="2" width="10" height="2" /></element>
<element ref="text_uit2"><bounds x="0" y="4" width="10" height="2" /></element>
<!-- board -->
<element ref="text_uib1"><bounds x="0" y="9" width="10" height="2" /></element>
<element ref="cwhite"><bounds x="1" y="11.5" width="8" height="2.5" /></element>
<element ref="cwhite"><bounds x="1" y="15" width="8" height="2.5" /></element>
<element ref="text_uib2"><bounds x="1.5" y="11.75" width="7" height="2" /></element>
<element ref="text_uib3"><bounds x="1.5" y="15.25" width="7" height="2" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x200"><bounds x="1" y="11.5" width="8" height="2.5" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x100"><bounds x="1" y="15" width="8" height="2.5" /><color alpha="0.25" /></element>
<!-- spawn -->
<element ref="text_uis1"><bounds x="0" y="20.5" width="10" height="2" /></element>
<element ref="cwhite"><bounds x="1" y="23" width="8" height="12" /></element>
<element ref="cwhite"><bounds x="1" y="36" width="8" height="12" /></element>
<element name="piece_ui1" ref="piece"><bounds x="1" y="23" width="4" height="4" /></element>
<element name="piece_ui2" ref="piece"><bounds x="1" y="27" width="4" height="4" /></element>
<element name="piece_ui3" ref="piece"><bounds x="1" y="31" width="4" height="4" /></element>
<element name="piece_ui4" ref="piece"><bounds x="5" y="23" width="4" height="4" /></element>
<element name="piece_ui5" ref="piece"><bounds x="5" y="27" width="4" height="4" /></element>
<element name="piece_ui6" ref="piece"><bounds x="5" y="31" width="4" height="4" /></element>
<element name="piece_ui7" ref="piece"><bounds x="1" y="36" width="4" height="4" /></element>
<element name="piece_ui8" ref="piece"><bounds x="1" y="40" width="4" height="4" /></element>
<element name="piece_ui9" ref="piece"><bounds x="1" y="44" width="4" height="4" /></element>
<element name="piece_ui10" ref="piece"><bounds x="5" y="36" width="4" height="4" /></element>
<element name="piece_ui11" ref="piece"><bounds x="5" y="40" width="4" height="4" /></element>
<element name="piece_ui12" ref="piece"><bounds x="5" y="44" width="4" height="4" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0001"><bounds x="1" y="23" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0002"><bounds x="1" y="27" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0004"><bounds x="1" y="31" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0008"><bounds x="5" y="23" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0010"><bounds x="5" y="27" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0020"><bounds x="5" y="31" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0040"><bounds x="1" y="36" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0080"><bounds x="1" y="40" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0100"><bounds x="1" y="44" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0200"><bounds x="5" y="36" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0400"><bounds x="5" y="40" width="4" height="4" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:SPAWN" inputmask="0x0800"><bounds x="5" y="44" width="4" height="4" /><color alpha="0.25" /></element>
<!-- hand -->
<element ref="text_uih1"><bounds x="0" y="51" width="10" height="2" /></element>
<element ref="cblack"><bounds x="1" y="53.5" width="8" height="6" /></element>
<element name="piece_ui0" ref="piece"><bounds x="2" y="53.5" width="6" height="6" /></element>
<element ref="cwhite"><bounds x="1" y="60.5" width="8" height="2.5" /></element>
<element ref="text_uih2"><bounds x="1.5" y="60.75" width="7" height="2" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x08"><bounds x="1" y="60.5" width="8" height="2.5" /><color alpha="0.25" /></element>
<!-- undo -->
<element ref="text_uiu1"><bounds x="0" y="66" width="10" height="2" /></element>
<element ref="cwhite"><bounds x="1" y="68.5" width="1.7" height="6" /></element>
<element ref="cwhite"><bounds x="3.1" y="68.5" width="1.7" height="6" /></element>
<element ref="cwhite"><bounds x="5.2" y="68.5" width="1.7" height="6" /></element>
<element ref="cwhite"><bounds x="7.3" y="68.5" width="1.7" height="6" /></element>
<element ref="text_uiu2a"><bounds x="1" y="69.5" width="1.7" height="4" /></element>
<element ref="text_uiu2b"><bounds x="3.1" y="69.5" width="1.7" height="4" /></element>
<element ref="text_uiu2c"><bounds x="5.2" y="69.5" width="1.7" height="4" /></element>
<element ref="text_uiu2d"><bounds x="7.3" y="69.5" width="1.7" height="4" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x10"><bounds x="1" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x20"><bounds x="3.1" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x40"><bounds x="5.2" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element>
<element ref="hlub" inputtag="board:UI" inputmask="0x80"><bounds x="7.3" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element>
<element name="count_ui0" ref="text_uiu3a"><bounds x="0" y="75" width="4" height="2" /></element>
<element name="count_ui1" ref="text_uiu3c"><bounds x="6" y="75" width="4" height="2" /></element>
<element ref="text_uiu3b"><bounds x="4" y="75" width="2" height="2" /></element>
</group>
<!-- buttons -->
<element name="black"><rect><color red="0.21" green="0.2" blue="0.2" /></rect></element>
<element name="black2"><rect><color red="0" green="0" blue="0" /></rect></element>
<element name="whitem"><rect><color red="0.6" green="0.6" blue="0.59" /></rect></element>
<element name="red"><rect><color red="0.8" green="0.2" blue="0.2" /></rect></element>
<element name="text_b01"><rect><color red="0.21" green="0.2" blue="0.2" /></rect><text string="RES"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_b02"><rect><color red="0.21" green="0.2" blue="0.2" /></rect><text string="ON"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_b03"><rect><color red="0.21" green="0.2" blue="0.2" /></rect><text string="STOP"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_b04"><rect><color red="0.8" green="0.2" blue="0.2" /></rect><text string="BOOK"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_b05"><rect><color red="0.8" green="0.2" blue="0.2" /></rect><text string="INFO"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_b06"><rect><color red="0.8" green="0.2" blue="0.2" /></rect><text string="HELP"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_b11"><rect><color red="0.21" green="0.2" blue="0.2" /></rect><text string="PLAY"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_b12"><rect><color red="0.21" green="0.2" blue="0.2" /></rect><text string="POS"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_b13"><rect><color red="0.21" green="0.2" blue="0.2" /></rect><text string="MEM"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_b14"><rect><color red="0.21" green="0.2" blue="0.2" /></rect><text string="ENT"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_b15"><rect><color red="0.21" green="0.2" blue="0.2" /></rect><text string=" "><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_b16"><rect><color red="0.21" green="0.2" blue="0.2" /></rect><text string="LEV"><color red="0.81" green="0.8" blue="0.79" /></text></element>
<element name="text_p1"><image file="chess/wp.svg"/></element>
<element name="text_p2"><image file="chess/wn.svg"/></element>
<element name="text_p3"><image file="chess/wb.svg"/></element>
<element name="text_p4"><image file="chess/wr.svg"/></element>
<element name="text_p5"><image file="chess/wq.svg"/></element>
<element name="text_p6"><image file="chess/wk.svg"/></element>
<element name="text_bw">
<rect>
<bounds xc="0" yc="0" width="1" height="1" />
<color red="0.81" green="0.8" blue="0.79" />
</rect>
<rect>
<bounds xc="0" yc="0" width="0.75" height="0.75" />
<color red="0.21" green="0.2" blue="0.2" />
</rect>
</element>
<element name="redm">
<rect>
<bounds xc="0" yc="0" width="29.1" height="6.43" />
<color red="0.99" green="0.45" blue="0.46" />
</rect>
<rect>
<bounds xc="0" yc="0" width="28.6" height="5.93" />
<color red="1" green="1" blue="1" />
</rect>
</element>
<element name="hlb" defstate="0">
<rect state="1"><color red="1" green="1" blue="1" /></rect>
</element>
<group name="buttons">
<bounds x="0" y="0" width="60" height="25" />
<element ref="black"><bounds xc="5" yc="5" width="6.66" height="4" /></element>
<element ref="black"><bounds xc="15" yc="5" width="6.66" height="4" /></element>
<element ref="black"><bounds xc="25" yc="5" width="6.66" height="4" /></element>
<element ref="red"><bounds xc="35" yc="5" width="6.66" height="4" /></element>
<element ref="red"><bounds xc="45" yc="5" width="6.66" height="4" /></element>
<element ref="red"><bounds xc="55" yc="5" width="6.66" height="4" /></element>
<repeat count="6">
<param name="x" start="5" increment="10" />
<param name="i" start="1" increment="1" />
<element ref="text_b0~i~"><bounds xc="~x~" yc="5" width="6.5" height="2" /></element>
<element ref="black"><bounds xc="~x~" yc="16.6" width="6.66" height="4" /></element>
<element ref="text_b1~i~"><bounds xc="~x~" yc="16.6" width="6.5" height="2" /></element>
<element ref="black2"><bounds xc="~x~" yc="10.8" width="6.66" height="4" /></element>
<element ref="text_p~i~"><bounds xc="~x~" yc="10.8" width="2.7" height="2.7" /></element>
<element ref="whitem" blend="multiply"><bounds xc="~x~" yc="10.8" width="3.5" height="3.5" /></element>
<element ref="black" blend="add"><bounds xc="~x~" yc="10.8" width="6.66" height="4" /></element>
</repeat>
<element ref="cwhite"><bounds xc="43.65" yc="16.65" width="1.2" height="1.2" /></element>
<element ref="text_bw"><bounds xc="46.35" yc="16.65" width="1.2" height="1.2" /></element>
<element ref="hlb" inputtag="IN.2" inputmask="0x01"><bounds xc="5" yc="5" width="6.66" height="4" /><color alpha="0.2" /></element>
<element ref="hlb" inputtag="RESET" inputmask="0x01"><bounds xc="15" yc="5" width="6.66" height="4" /><color alpha="0.2" /></element>
<element ref="hlb" inputtag="IN.2" inputmask="0x04"><bounds xc="25" yc="5" width="6.66" height="4" /><color alpha="0.2" /></element>
<element ref="hlb" inputtag="IN.2" inputmask="0x08"><bounds xc="35" yc="5" width="6.66" height="4" /><color alpha="0.2" /></element>
<element ref="hlb" inputtag="IN.2" inputmask="0x10"><bounds xc="45" yc="5" width="6.66" height="4" /><color alpha="0.2" /></element>
<element ref="hlb" inputtag="IN.2" inputmask="0x20"><bounds xc="55" yc="5" width="6.66" height="4" /><color alpha="0.2" /></element>
<repeat count="6">
<param name="x" start="5" increment="10" />
<param name="mask" start="0x01" lshift="1" />
<element ref="hlb" inputtag="IN.1" inputmask="~mask~"><bounds xc="~x~" yc="10.8" width="6.66" height="4" /><color alpha="0.2" /></element>
<element ref="hlb" inputtag="IN.0" inputmask="~mask~"><bounds xc="~x~" yc="16.6" width="6.66" height="4" /><color alpha="0.2" /></element>
</repeat>
</group>
<!-- leds -->
<element name="text_l1"><rect><color red="0.81" green="0.8" blue="0.79" /></rect><text string="PLAY" align="1"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_l2"><rect><color red="0.81" green="0.8" blue="0.79" /></rect><text string="POS" align="1"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_l3"><rect><color red="0.81" green="0.8" blue="0.79" /></rect><text string="MEM" align="1"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_l4"><rect><color red="0.81" green="0.8" blue="0.79" /></rect><text string="+" align="1"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_l5"><rect><color red="0.81" green="0.8" blue="0.79" /></rect><text string="INFO" align="1"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_l6"><rect><color red="0.81" green="0.8" blue="0.79" /></rect><text string="TUTOR" align="1"><color red="0.05" green="0.05" blue="0.05" /></text></element>
<element name="text_wb">
<rect>
<bounds xc="0" yc="0" width="1" height="1" />
<color red="0.05" green="0.05" blue="0.05" />
</rect>
<rect>
<bounds xc="0" yc="0" width="0.75" height="0.75" />
<color red="0.81" green="0.8" blue="0.79" />
</rect>
</element>
<group name="leds">
<bounds x="0" y="0" width="100" height="5" />
<element ref="text_wb"><bounds x="6.6" y="1.5" width="1.2" height="1.2" /></element>
<element ref="blackb"><bounds x="16.6" y="1.5" width="1.2" height="1.2" /></element>
<element ref="text_l1"><bounds x="26.6" y="1.1" width="5" height="1.7" /></element>
<element ref="text_l2"><bounds x="36.6" y="1.1" width="5" height="1.7" /></element>
<element ref="text_l3"><bounds x="46.6" y="1.1" width="5" height="1.7" /></element>
<element ref="text_l4"><bounds x="56.6" y="0.8" width="5" height="2.1" /></element>
<element ref="text_l5"><bounds x="66.6" y="1.1" width="5" height="1.7" /></element>
<element ref="text_l6"><bounds x="76.6" y="1.1" width="5" height="1.7" /></element>
<element name="1.0" ref="ledg"><bounds xc="5" y="1" width="1.7" height="1.7" /></element>
<element name="1.1" ref="ledg"><bounds xc="15" y="1" width="1.7" height="1.7" /></element>
<element name="1.2" ref="ledg"><bounds xc="25" y="1" width="1.7" height="1.7" /></element>
<element name="1.3" ref="ledg"><bounds xc="35" y="1" width="1.7" height="1.7" /></element>
<element name="1.4" ref="ledg"><bounds xc="45" y="1" width="1.7" height="1.7" /></element>
<element name="1.5" ref="ledg"><bounds xc="55" y="1" width="1.7" height="1.7" /></element>
<element name="1.6" ref="ledr"><bounds xc="65" y="1" width="1.7" height="1.7" /></element>
<element name="1.7" ref="ledr"><bounds xc="75" y="1" width="1.7" height="1.7" /></element>
</group>
<!-- build screen -->
<view name="Internal Layout">
<bounds left="-8" right="95" top="5" bottom="117.5" />
<element ref="cwhite"><bounds x="5" y="5" width="90" height="112.5" /></element>
<!-- chessboard coords -->
<element ref="text_a"><bounds x="11.5" y="90.8" width="2" height="1.7" /></element>
<element ref="text_b"><bounds x="21.5" y="90.8" width="2" height="1.7" /></element>
<element ref="text_c"><bounds x="31.5" y="90.8" width="2" height="1.7" /></element>
<element ref="text_d"><bounds x="41.5" y="90.8" width="2" height="1.7" /></element>
<element ref="text_e"><bounds x="51.5" y="90.8" width="2" height="1.7" /></element>
<element ref="text_f"><bounds x="61.5" y="90.8" width="2" height="1.7" /></element>
<element ref="text_g"><bounds x="71.5" y="90.8" width="2" height="1.7" /></element>
<element ref="text_h"><bounds x="81.5" y="90.8" width="2" height="1.7" /></element>
<element ref="text_8"><bounds x="7.2" y="16.7" width="2" height="1.7" /></element>
<element ref="text_7"><bounds x="7.2" y="26.7" width="2" height="1.7" /></element>
<element ref="text_6"><bounds x="7.2" y="36.7" width="2" height="1.7" /></element>
<element ref="text_5"><bounds x="7.2" y="46.7" width="2" height="1.7" /></element>
<element ref="text_4"><bounds x="7.2" y="56.7" width="2" height="1.7" /></element>
<element ref="text_3"><bounds x="7.2" y="66.7" width="2" height="1.7" /></element>
<element ref="text_2"><bounds x="7.2" y="76.7" width="2" height="1.7" /></element>
<element ref="text_1"><bounds x="7.2" y="86.7" width="2" height="1.7" /></element>
<!-- chessboard leds -->
<element name="0.7" ref="led"><bounds x="7.75" yc="15" width="0.85" height="2" /></element>
<element name="0.6" ref="led"><bounds x="7.75" yc="25" width="0.85" height="2" /></element>
<element name="0.5" ref="led"><bounds x="7.75" yc="35" width="0.85" height="2" /></element>
<element name="0.4" ref="led"><bounds x="7.75" yc="45" width="0.85" height="2" /></element>
<element name="0.3" ref="led"><bounds x="7.75" yc="55" width="0.85" height="2" /></element>
<element name="0.2" ref="led"><bounds x="7.75" yc="65" width="0.85" height="2" /></element>
<element name="0.1" ref="led"><bounds x="7.75" yc="75" width="0.85" height="2" /></element>
<element name="0.0" ref="led"><bounds x="7.75" yc="85" width="0.85" height="2" /></element>
<element name="2.0" ref="led"><bounds xc="15" y="91.4" width="2" height="0.85" /></element>
<element name="2.1" ref="led"><bounds xc="25" y="91.4" width="2" height="0.85" /></element>
<element name="2.2" ref="led"><bounds xc="35" y="91.4" width="2" height="0.85" /></element>
<element name="2.3" ref="led"><bounds xc="45" y="91.4" width="2" height="0.85" /></element>
<element name="2.4" ref="led"><bounds xc="55" y="91.4" width="2" height="0.85" /></element>
<element name="2.5" ref="led"><bounds xc="65" y="91.4" width="2" height="0.85" /></element>
<element name="2.6" ref="led"><bounds xc="75" y="91.4" width="2" height="0.85" /></element>
<element name="2.7" ref="led"><bounds xc="85" y="91.4" width="2" height="0.85" /></element>
<group ref="sb_board"><bounds xc="50" yc="50" width="80.5" height="80.5" /></group>
<group ref="sb_ui"><bounds x="-6.5" y="10" width="10" height="80" /></group>
<group ref="buttons"><bounds x="30" y="93" width="60" height="25" /></group>
<element ref="redm" blend="multiply"><bounds xc="45" yc="98" width="29.1" height="6.43" /></element>
<element ref="redm" blend="multiply"><bounds xc="75" yc="98" width="29.1" height="6.43" /></element>
<group ref="leds"><bounds x="10" y="112.2" width="100" height="5" /></group>
</view>
</mamelayout>

View File

@ -19255,6 +19255,9 @@ mephisto3b
mephisto3c
mephistoj
@source:hegenerglaser/europa.cpp
europa
@source:hegenerglaser/glasgow.cpp
amsterda // Amsterdam
dallas16a // Dallas