summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2020-12-24 18:40:07 +0100
committer hap <happppp@users.noreply.github.com>2020-12-24 18:40:20 +0100
commit3ec0a6596975ffb5e386d746b9179125cf518a25 (patch)
treea53568187f396ee39ac5a058dda81573b08c489f
parent531eedcc7f9eb31872900263fb13b4241023dd1f (diff)
Machines promoted to working
---------------------------- Super Nova (Novag) [hap, Berger]
-rw-r--r--src/mame/drivers/novag_snova.cpp41
-rw-r--r--src/mame/drivers/odyssey2.cpp5
-rw-r--r--src/mame/drivers/saitek_mark5.cpp2
-rw-r--r--src/mame/drivers/saitek_ssystem3.cpp2
-rw-r--r--src/mame/layout/novag_snova.lay478
5 files changed, 505 insertions, 23 deletions
diff --git a/src/mame/drivers/novag_snova.cpp b/src/mame/drivers/novag_snova.cpp
index c809817c52f..de9d497ba04 100644
--- a/src/mame/drivers/novag_snova.cpp
+++ b/src/mame/drivers/novag_snova.cpp
@@ -16,7 +16,6 @@ TODO:
- NMI on power-off switch, it sets 0x14 bit 7 for standby power (see below)
- add nvram, MCU is missing standby power emulation
- beeps are glitchy, as if interrupted for too long
-- internal artwork
- rs232 port isn't working?
- unmapped reads from 0x33/0x34
@@ -33,6 +32,9 @@ TODO:
#include "screen.h"
#include "speaker.h"
+// internal artwork
+#include "novag_snova.lh" // clickable
+
namespace {
@@ -149,7 +151,7 @@ void snova_state::p2_w(u8 data)
m_dac->write(BIT(data, 2));
// P24: serial tx
- m_rs232->write_txd(BIT(data, 4));
+ m_rs232->write_txd(BIT(~data, 4));
// P25-P27: 4051 S1-S2
// 4051 Y0-Y7: multiplexed inputs
@@ -194,24 +196,24 @@ void snova_state::main_map(address_map &map)
static INPUT_PORTS_START( snova )
PORT_START("IN.0")
- PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1)
- PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2)
- PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3) // pawn
- PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4) // knight
- PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) // bishop
- PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) // rook
- PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_7) // queen
- PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_8) // king
+ PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_8) PORT_NAME("Trace Back / Next Best")
+ PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_7) PORT_NAME("Trace Forward / Auto Play")
+ PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_NAME("Set Level / Pawn")
+ PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_NAME("Info / Echo / Knight")
+ PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4) PORT_NAME("Easy / Moves / Bishop")
+ PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3) PORT_NAME("Solve Mate / Language / Rook")
+ PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2) PORT_NAME("Sound / Game / Queen")
+ PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1) PORT_NAME("Referee / Board / King")
PORT_START("IN.1")
- PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Q) // go
- PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_W)
- PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_E)
- PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R)
- PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_T)
- PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Y) // verify
- PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_U)
- PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_I) // new game
+ PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_I) PORT_NAME("Go")
+ PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_U) PORT_NAME("Restore")
+ PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Y) PORT_NAME("Hint / Human")
+ PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_T) PORT_NAME("Clear Board / Clear")
+ PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) PORT_NAME("Color / Video")
+ PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_E) PORT_NAME("Set Up / Verify")
+ PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_W) PORT_NAME("Random / Auto Clock")
+ PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Q) PORT_NAME("New Game")
INPUT_PORTS_END
@@ -244,6 +246,7 @@ void snova_state::snova(machine_config &config)
screen.set_visarea_full();
PWM_DISPLAY(config, m_led_pwm).set_size(2, 8);
+ config.set_default_layout(layout_novag_snova);
/* sound hardware */
SPEAKER(config, "speaker").front_center();
@@ -276,5 +279,5 @@ ROM_END
******************************************************************************/
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS
-CONS( 1990, nsnova, 0, 0, snova, snova, snova_state, empty_init, "Novag", "Super Nova (Novag)", MACHINE_SUPPORTS_SAVE | MACHINE_NOT_WORKING )
+CONS( 1990, nsnova, 0, 0, snova, snova, snova_state, empty_init, "Novag", "Super Nova (Novag)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
diff --git a/src/mame/drivers/odyssey2.cpp b/src/mame/drivers/odyssey2.cpp
index 1790f3dcd26..e79ba927676 100644
--- a/src/mame/drivers/odyssey2.cpp
+++ b/src/mame/drivers/odyssey2.cpp
@@ -270,6 +270,7 @@ void odyssey2_state::odyssey2_palette(palette_device &palette) const
void odyssey2_state::adjust_palette()
{
+ // JO7400 has an RGB port, on other consoles it's an optional homebrew modification
if (ioport("CONF")->read() & 1)
m_i8244->i8244_palette(*m_palette);
else
@@ -456,7 +457,7 @@ void vpp_state::i8243_port_w(u8 data)
// P4,P5: color mix I8244 side (IC674)
// P6,P7: color mix EF9340 side (IC678)
u8 mask = 0xf;
- if (~P & 1)
+ if constexpr (~P & 1)
{
data <<= 4;
mask <<= 4;
@@ -464,7 +465,7 @@ void vpp_state::i8243_port_w(u8 data)
m_screen->update_now();
- if (P & 2)
+ if constexpr (P & 2)
m_mix_i8244 = (m_mix_i8244 & ~mask) | (data & mask);
else
m_mix_ef934x = (m_mix_ef934x & ~mask) | (data & mask);
diff --git a/src/mame/drivers/saitek_mark5.cpp b/src/mame/drivers/saitek_mark5.cpp
index f87a57bc2eb..83a92784c4f 100644
--- a/src/mame/drivers/saitek_mark5.cpp
+++ b/src/mame/drivers/saitek_mark5.cpp
@@ -174,7 +174,7 @@ void mark5_state::pwm_output_w(offs_t offset, u8 data)
template<int N>
void mark5_state::lcd_output_w(u64 data)
{
- if (N == 0)
+ if constexpr (N == 0)
{
// HLCD0538 R pins
m_lcd_rowsel = data & 0xff;
diff --git a/src/mame/drivers/saitek_ssystem3.cpp b/src/mame/drivers/saitek_ssystem3.cpp
index 137a4811353..ae504cc2138 100644
--- a/src/mame/drivers/saitek_ssystem3.cpp
+++ b/src/mame/drivers/saitek_ssystem3.cpp
@@ -308,7 +308,7 @@ void ssystem3_state::lcd2_output_w(offs_t offset, u32 data)
m_lcd2_data = u64(data) << 32 | m_lcd2_data >> 32;
- if (N == 1)
+ if constexpr (N == 1)
lcd2_update();
}
diff --git a/src/mame/layout/novag_snova.lay b/src/mame/layout/novag_snova.lay
new file mode 100644
index 00000000000..866fdb9af21
--- /dev/null
+++ b/src/mame/layout/novag_snova.lay
@@ -0,0 +1,478 @@
+<?xml version="1.0"?>
+<!--
+license:CC0
+-->
+<mamelayout version="2">
+
+<!-- define elements -->
+
+ <element name="cyan"><rect><color red="0.15" green="0.75" blue="0.6" /></rect></element>
+ <element name="lcdm"><rect><color red="0.7" green="0.71" blue="0.72" /></rect></element>
+
+ <element name="led" defstate="0">
+ <disk state="1"><color red="0.1" green="1.0" blue="0.15" /></disk>
+ <disk state="0"><color red="0.015" green="0.17" blue="0.02" /></disk>
+ </element>
+
+ <element name="text_1"><text string="1"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_2"><text string="2"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_3"><text string="3"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_4"><text string="4"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_5"><text string="5"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_6"><text string="6"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_7"><text string="7"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_8"><text string="8"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+
+ <element name="text_a"><text string="A"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_b"><text string="B"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_c"><text string="C"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_d"><text string="D"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_e"><text string="E"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_f"><text string="F"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_g"><text string="G"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+ <element name="text_h"><text string="H"><color red="0.85" green="0.85" blue="0.85" /></text></element>
+
+
+<!-- sb board -->
+
+ <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.png" state="1"/>
+ <image file="chess/wn.png" state="2"/>
+ <image file="chess/wb.png" state="3"/>
+ <image file="chess/wr.png" state="4"/>
+ <image file="chess/wq.png" state="5"/>
+ <image file="chess/wk.png" state="6"/>
+
+ <image file="chess/bp.png" state="7"/>
+ <image file="chess/bn.png" state="8"/>
+ <image file="chess/bb.png" state="9"/>
+ <image file="chess/br.png" state="10"/>
+ <image file="chess/bq.png" state="11"/>
+ <image file="chess/bk.png" state="12"/>
+
+ <!-- selected pieces -->
+ <image file="chess/wp.png" state="13"><color alpha="0.5" /></image>
+ <image file="chess/wn.png" state="14"><color alpha="0.5" /></image>
+ <image file="chess/wb.png" state="15"><color alpha="0.5" /></image>
+ <image file="chess/wr.png" state="16"><color alpha="0.5" /></image>
+ <image file="chess/wq.png" state="17"><color alpha="0.5" /></image>
+ <image file="chess/wk.png" state="18"><color alpha="0.5" /></image>
+
+ <image file="chess/bp.png" state="19"><color alpha="0.5" /></image>
+ <image file="chess/bn.png" state="20"><color alpha="0.5" /></image>
+ <image file="chess/bb.png" state="21"><color alpha="0.5" /></image>
+ <image file="chess/br.png" state="22"><color alpha="0.5" /></image>
+ <image file="chess/bq.png" state="23"><color alpha="0.5" /></image>
+ <image file="chess/bk.png" state="24"><color alpha="0.5" /></image>
+ </element>
+
+ <group name="sb_board">
+ <bounds x="0" y="0" width="80" height="80" />
+
+ <!-- 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="hl" 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="1" green="1" blue="1" />
+ </disk>
+ </element>
+
+ <element name="butb" defstate="0">
+ <disk state="0"><color red="0.165" green="0.16" blue="0.16" /></disk>
+ <disk state="1"><color red="0.31" green="0.3" blue="0.3" /></disk>
+ </element>
+ <element name="buty" defstate="0">
+ <disk state="0"><color red="0.73" green="0.72" blue="0.15" /></disk>
+ <disk state="1"><color red="0.555" green="0.55" blue="0.1" /></disk>
+ </element>
+
+ <element name="text_c00"><text string="Referee"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c01"><text string="Sound"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c02"><text string="Solve Mate"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c03"><text string="Easy"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c04"><text string="Info"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c05"><text string="Set Level"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c06"><text string="Trace"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c06a"><text string="Forward"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c07"><text string="Trace Back"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+
+ <element name="text_c10"><text string=" "><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c11"><text string="Auto Clock"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c12"><text string="Verify"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c13"><text string="Video"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c14"><text string="Clear"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c15"><text string="Human"><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c16"><text string=" "><color red="0.15" green="0.75" blue="0.6" /></text></element>
+ <element name="text_c17"><text string=" "><color red="0.15" green="0.75" blue="0.6" /></text></element>
+
+ <element name="text_g00"><text string="Board"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g01"><text string="Game"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g02"><text string="Language"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g03"><text string="Moves"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g04"><text string="Echo"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g05"><text string=" "><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g06"><text string="Auto Play"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g07"><text string="Next Best"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+
+ <element name="text_g10"><text string="New Game"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g11"><text string="Random"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g12"><text string="Set Up"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g13"><text string="Color"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g14"><text string="Clear Board"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g15"><text string="Hint"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g16"><text string="Restore"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+ <element name="text_g17"><text string="Go"><color red="0.7" green="0.7" blue="0.71" /></text></element>
+
+ <element name="text_p6"><image file="chess/wk.png"/></element>
+ <element name="text_p5"><image file="chess/wq.png"/></element>
+ <element name="text_p4"><image file="chess/wr.png"/></element>
+ <element name="text_p3"><image file="chess/wb.png"/></element>
+ <element name="text_p2"><image file="chess/wn.png"/></element>
+ <element name="text_p1"><image file="chess/wp.png"/></element>
+
+ <group name="buttons">
+ <bounds x="0" y="0" width="100" height="30" />
+
+ <repeat count="8">
+ <param name="x" start="9.75" increment="10" />
+ <element ref="cyan"><bounds x="~x~" y="9" width="0.5" height="10" /></element>
+ </repeat>
+
+ <repeat count="6">
+ <param name="i" start="6" increment="-1" />
+ <param name="x" start="13" increment="10" />
+
+ <element ref="text_p~i~"><bounds x="~x~" y="12" width="4" height="4" /><color alpha="0.85" /></element>
+ </repeat>
+
+ <repeat count="8">
+ <param name="i" start="0" increment="1" />
+ <param name="x" start="8" increment="10" />
+
+ <element ref="text_c0~i~"><bounds x="~x~" y="10" width="14" height="2.15" /></element>
+ <element ref="text_g0~i~"><bounds x="~x~" y="16" width="14" height="2.15" /></element>
+ <element ref="text_c1~i~"><bounds x="~x~" y="19.7" width="14" height="2.15" /></element>
+ <element ref="text_g1~i~"><bounds x="~x~" y="26.5" width="14" height="2.15" /></element>
+ </repeat>
+ <element ref="text_c06a"><bounds x="68" y="12" width="14" height="2.15" /></element>
+
+ <repeat count="8">
+ <param name="x" start="10" increment="10" />
+ <param name="mask" start="0x80" rshift="1" />
+
+ <element ref="hl" inputtag="IN.0" inputmask="~mask~"><bounds x="~x~" y="9" width="10" height="10" /><color alpha="0.25" /></element>
+ </repeat>
+
+ <repeat count="6">
+ <param name="x" start="23.25" increment="10" />
+ <param name="mask" start="0x40" rshift="1" />
+
+ <element ref="butb" inputtag="IN.1" inputmask="~mask~"><bounds x="~x~" y="22.5" width="3.5" height="3.5" /></element>
+ </repeat>
+ <element ref="buty" inputtag="IN.1" inputmask="0x80"><bounds x="13.25" y="22.5" width="3.5" height="3.5" /></element>
+ <element ref="buty" inputtag="IN.1" inputmask="0x01"><bounds x="83.25" y="22.5" width="3.5" height="3.5" /></element>
+ </group>
+
+
+<!-- build screen -->
+
+ <view name="Internal Layout">
+ <bounds left="-12" right="87" top="0" bottom="102.5" />
+
+ <element ref="cyan"><bounds x="3.675" y="2.675" width="80.65" height="80.65" /></element>
+ <group ref="sb_board"><bounds x="4" y="3" width="80" height="80" /></group>
+ <group ref="sb_ui"><bounds x="-10.5" y="3" width="10" height="80" /></group>
+
+ <!-- chessboard coords -->
+ <element ref="text_8"><bounds x="1.4" y="9" width="2" height="2" /></element>
+ <element ref="text_7"><bounds x="1.4" y="19" width="2" height="2" /></element>
+ <element ref="text_6"><bounds x="1.4" y="29" width="2" height="2" /></element>
+ <element ref="text_5"><bounds x="1.4" y="39" width="2" height="2" /></element>
+ <element ref="text_4"><bounds x="1.4" y="49" width="2" height="2" /></element>
+ <element ref="text_3"><bounds x="1.4" y="59" width="2" height="2" /></element>
+ <element ref="text_2"><bounds x="1.4" y="69" width="2" height="2" /></element>
+ <element ref="text_1"><bounds x="1.4" y="79" width="2" height="2" /></element>
+
+ <element ref="text_a"><bounds x="6" y="83.8" width="2" height="2" /></element>
+ <element ref="text_b"><bounds x="16" y="83.8" width="2" height="2" /></element>
+ <element ref="text_c"><bounds x="26" y="83.8" width="2" height="2" /></element>
+ <element ref="text_d"><bounds x="36" y="83.8" width="2" height="2" /></element>
+ <element ref="text_e"><bounds x="46" y="83.8" width="2" height="2" /></element>
+ <element ref="text_f"><bounds x="56" y="83.8" width="2" height="2" /></element>
+ <element ref="text_g"><bounds x="66" y="83.8" width="2" height="2" /></element>
+ <element ref="text_h"><bounds x="76" y="83.8" width="2" height="2" /></element>
+
+ <!-- chessboard leds -->
+ <element name="0.0" ref="led"><bounds x="1.5" y="7.25" width="1.5" height="1.5" /></element>
+ <element name="0.1" ref="led"><bounds x="1.5" y="17.25" width="1.5" height="1.5" /></element>
+ <element name="0.2" ref="led"><bounds x="1.5" y="27.25" width="1.5" height="1.5" /></element>
+ <element name="0.3" ref="led"><bounds x="1.5" y="37.25" width="1.5" height="1.5" /></element>
+ <element name="0.4" ref="led"><bounds x="1.5" y="47.25" width="1.5" height="1.5" /></element>
+ <element name="0.5" ref="led"><bounds x="1.5" y="57.25" width="1.5" height="1.5" /></element>
+ <element name="0.6" ref="led"><bounds x="1.5" y="67.25" width="1.5" height="1.5" /></element>
+ <element name="0.7" ref="led"><bounds x="1.5" y="77.25" width="1.5" height="1.5" /></element>
+
+ <element name="1.0" ref="led"><bounds x="8.25" y="84" width="1.5" height="1.5" /></element>
+ <element name="1.1" ref="led"><bounds x="18.25" y="84" width="1.5" height="1.5" /></element>
+ <element name="1.2" ref="led"><bounds x="28.25" y="84" width="1.5" height="1.5" /></element>
+ <element name="1.3" ref="led"><bounds x="38.25" y="84" width="1.5" height="1.5" /></element>
+ <element name="1.4" ref="led"><bounds x="48.25" y="84" width="1.5" height="1.5" /></element>
+ <element name="1.5" ref="led"><bounds x="58.25" y="84" width="1.5" height="1.5" /></element>
+ <element name="1.6" ref="led"><bounds x="68.25" y="84" width="1.5" height="1.5" /></element>
+ <element name="1.7" ref="led"><bounds x="78.25" y="84" width="1.5" height="1.5" /></element>
+
+ <!-- bottom side -->
+ <element ref="cyan"><bounds x="3.675" y="88.05" width="80.65" height="0.325" /></element>
+ <element ref="cyan"><bounds x="31.975" y="94.5" width="52.35" height="0.325" /></element>
+ <group ref="buttons"><bounds x="27.5" y="82.3" width="65" height="19.5" /></group>
+
+ <screen index="0"><bounds x="3.675" y="89" width="26" height="8" /></screen>
+ <element ref="lcdm" blend="multiply"><bounds x="3.675" y="89" width="26" height="8" /></element>
+
+ </view>
+</mamelayout>