chessmate: add internal artwork (nw)

This commit is contained in:
hap 2019-07-08 15:19:59 +02:00
parent 63dd5856c4
commit 1ee3ba71ef
12 changed files with 876 additions and 307 deletions

View File

@ -10,10 +10,10 @@ The hardware is pretty similar to KIM-1. In fact, the chess engine is Peter R. J
Microchess, originally made for the KIM-1. Jennings went on to co-found Personal Software
(later named VisiCorp, known for VisiCalc).
Jennings also licensed Chessmate to Novag, and they released it as the MK II. Funnily
enough, MK I had a stronger program. MK II hardware is almost identical to Chessmate and
the software is the same(identical ROM labels). 2 designs were made, one jukebox shape,
and one brick shape. The one in MAME came from the jukebox, but both have the same ROMs.
Jennings also licensed Chessmate to Novag, and they released it as the MK II. The hardware
is almost identical and the software is the same(identical ROM labels). Two designs were made,
one jukebox shape, and one brick shape. The one in MAME came from the jukebox, but both
models have the same ROMs.
TODO:
- XTAL is unknown, result frequency of 1MHz is correct
@ -42,7 +42,6 @@ MOS MPS 6332 005 2179
#include "emu.h"
#include "cpu/m6502/m6504.h"
#include "machine/mos6530.h"
#include "machine/timer.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
#include "video/pwm.h"
@ -226,9 +225,20 @@ static INPUT_PORTS_START( chmate )
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_N) PORT_CHANGED_MEMBER(DEVICE_SELF, chmate_state, reset_button, nullptr) PORT_NAME("New Game")
INPUT_PORTS_END
static INPUT_PORTS_START( mk2 ) // meaning of black/white reversed
PORT_INCLUDE( chmate )
PORT_MODIFY("IN.0")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_F) PORT_NAME("F / Level")
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_A) PORT_NAME("A / Black")
PORT_MODIFY("IN.1")
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_H) PORT_NAME("H / White")
INPUT_PORTS_END
static INPUT_PORTS_START( mk2a )
PORT_START("IN.0")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD) PORT_CODE(KEYCODE_F) PORT_NAME("6 / F / Skill Level")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD) PORT_CODE(KEYCODE_F) PORT_NAME("6 / F / Level")
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD) PORT_CODE(KEYCODE_E) PORT_NAME("5 / E / Stop Clock / Rook")
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD) PORT_CODE(KEYCODE_D) PORT_NAME("4 / D / Display Time")
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD) PORT_CODE(KEYCODE_C) PORT_NAME("3 / C / Chess Clock / Bishop")
@ -322,5 +332,5 @@ ROM_END
// YEAR NAME PARENT CMP MACHINE INPUT STATE INIT COMPANY, FULLNAME, FLAGS
CONS( 1978, chmate, 0, 0, chmate, chmate, chmate_state, empty_init, "Commodore", "Chessmate", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
CONS( 1979, ccmk2, chmate, 0, mk2, chmate, chmate_state, empty_init, "Novag", "Chess Champion: MK II (ver. 1)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) // 1st version (jukebox model), aka version B
CONS( 1979, ccmk2, chmate, 0, mk2, mk2, chmate_state, empty_init, "Novag", "Chess Champion: MK II (ver. 1)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) // 1st version (jukebox model), aka version B
CONS( 1979, ccmk2a, chmate, 0, mk2a, mk2a, chmate_state, empty_init, "Novag", "Chess Champion: MK II (ver. 2)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )

View File

@ -87,10 +87,10 @@ Fairchild 3850PK CPU @ 2MHz (LC circuit), 3853PK
namespace {
class compuchess_state : public driver_device
class cmpchess_state : public driver_device
{
public:
compuchess_state(const machine_config &mconfig, device_type type, const char *tag) :
cmpchess_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_display(*this, "display"),
@ -145,7 +145,7 @@ private:
bool m_blink;
};
void compuchess_state::machine_start()
void cmpchess_state::machine_start()
{
// zerofill
m_inp_mux = 0;
@ -160,12 +160,12 @@ void compuchess_state::machine_start()
save_item(NAME(m_blink));
}
void compuchess_state::machine_reset()
void cmpchess_state::machine_reset()
{
update_reset(ioport("RESET")->read());
}
void compuchess_state::update_reset(ioport_value state)
void cmpchess_state::update_reset(ioport_value state)
{
// reset switch is tied to F3850 RESET pin
m_maincpu->set_input_line(INPUT_LINE_RESET, state ? ASSERT_LINE : CLEAR_LINE);
@ -181,7 +181,7 @@ void compuchess_state::update_reset(ioport_value state)
Devices, I/O
******************************************************************************/
READ8_MEMBER(compuchess_state::beeper_r)
READ8_MEMBER(cmpchess_state::beeper_r)
{
// cncchess: trigger beeper
if (!machine().side_effects_disabled() && m_beeper != nullptr)
@ -193,7 +193,7 @@ READ8_MEMBER(compuchess_state::beeper_r)
return m_maincpu->space(AS_PROGRAM).read_byte(offset);
}
void compuchess_state::update_display()
void cmpchess_state::update_display()
{
// display panel goes into automated blink mode if DP segment is held high,
// and DP segment itself by default only appears to be active if no other segments are
@ -205,32 +205,32 @@ void compuchess_state::update_display()
m_display->matrix(m_digit_select, bstate << 8 | digit_data);
}
WRITE8_MEMBER(compuchess_state::digit_data_w)
WRITE8_MEMBER(cmpchess_state::digit_data_w)
{
// digit segment data
m_digit_data = data;
update_display();
}
READ8_MEMBER(compuchess_state::digit_data_r)
READ8_MEMBER(cmpchess_state::digit_data_r)
{
return m_digit_data;
}
WRITE8_MEMBER(compuchess_state::digit_select_w)
WRITE8_MEMBER(cmpchess_state::digit_select_w)
{
// d0-d3: digit select (active low)
m_digit_select = ~data & 0xf;
update_display();
}
WRITE8_MEMBER(compuchess_state::input_w)
WRITE8_MEMBER(cmpchess_state::input_w)
{
// input matrix is shared with either digit_data_w, or digit_select_w
m_inp_mux = data;
}
READ8_MEMBER(compuchess_state::input_r)
READ8_MEMBER(cmpchess_state::input_r)
{
u8 data = m_inp_mux;
@ -253,24 +253,24 @@ READ8_MEMBER(compuchess_state::input_r)
Address Maps
******************************************************************************/
void compuchess_state::main_map(address_map &map)
void cmpchess_state::main_map(address_map &map)
{
map(0x0000, 0x07ff).rom();
map(0x1800, 0x18ff).ram();
map(0x8000, 0xffff).r(FUNC(compuchess_state::beeper_r));
map(0x8000, 0xffff).r(FUNC(cmpchess_state::beeper_r));
}
void compuchess_state::main_io(address_map &map)
void cmpchess_state::main_io(address_map &map)
{
map(0x00, 0x00).rw(FUNC(compuchess_state::input_r), FUNC(compuchess_state::input_digit_data_w));
map(0x01, 0x01).w(FUNC(compuchess_state::digit_select_w));
map(0x00, 0x00).rw(FUNC(cmpchess_state::input_r), FUNC(cmpchess_state::input_digit_data_w));
map(0x01, 0x01).w(FUNC(cmpchess_state::digit_select_w));
map(0x0c, 0x0f).rw("smi", FUNC(f3853_device::read), FUNC(f3853_device::write));
}
void compuchess_state::cnc_io(address_map &map)
void cmpchess_state::cnc_io(address_map &map)
{
map(0x00, 0x00).rw(FUNC(compuchess_state::digit_data_r), FUNC(compuchess_state::digit_data_w));
map(0x01, 0x01).rw(FUNC(compuchess_state::input_r), FUNC(compuchess_state::input_digit_select_w));
map(0x00, 0x00).rw(FUNC(cmpchess_state::digit_data_r), FUNC(cmpchess_state::digit_data_w));
map(0x01, 0x01).rw(FUNC(cmpchess_state::input_r), FUNC(cmpchess_state::input_digit_select_w));
map(0x0c, 0x0f).rw("smi", FUNC(f3853_device::read), FUNC(f3853_device::write));
}
@ -306,7 +306,7 @@ static INPUT_PORTS_START( cmpchess )
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD) PORT_NAME("5 / Black Knight")
PORT_START("RESET")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CODE(KEYCODE_F1) PORT_TOGGLE PORT_CHANGED_MEMBER(DEVICE_SELF, compuchess_state, reset_switch, nullptr) PORT_NAME("Reset Switch") // L.S. switch on the MK I
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CODE(KEYCODE_F1) PORT_TOGGLE PORT_CHANGED_MEMBER(DEVICE_SELF, cmpchess_state, reset_switch, nullptr) PORT_NAME("Reset Switch") // L.S. switch on the MK I
INPUT_PORTS_END
static INPUT_PORTS_START( cncchess )
@ -335,7 +335,7 @@ static INPUT_PORTS_START( cncchess )
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_E) PORT_NAME("E / White Queen")
PORT_START("RESET")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, compuchess_state, reset_switch, nullptr) PORT_NAME("Reset")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, cmpchess_state, reset_switch, nullptr) PORT_NAME("Reset")
INPUT_PORTS_END
@ -344,12 +344,12 @@ INPUT_PORTS_END
Machine Configs
******************************************************************************/
void compuchess_state::cmpchess(machine_config &config)
void cmpchess_state::cmpchess(machine_config &config)
{
/* basic machine hardware */
F8(config, m_maincpu, 3.579545_MHz_XTAL/2); // Fairchild 3850PK
m_maincpu->set_addrmap(AS_PROGRAM, &compuchess_state::main_map);
m_maincpu->set_addrmap(AS_IO, &compuchess_state::main_io);
m_maincpu->set_addrmap(AS_PROGRAM, &cmpchess_state::main_map);
m_maincpu->set_addrmap(AS_IO, &cmpchess_state::main_io);
m_maincpu->set_irq_acknowledge_callback("smi", FUNC(f3853_device::int_acknowledge));
f3853_device &smi(F3853(config, "smi", 3.579545_MHz_XTAL/2));
@ -360,10 +360,10 @@ void compuchess_state::cmpchess(machine_config &config)
m_display->set_segmask(0xf, 0xff);
config.set_default_layout(layout_cmpchess);
TIMER(config, "blink_display").configure_periodic(FUNC(compuchess_state::blink), attotime::from_msec(250)); // approximation
TIMER(config, "blink_display").configure_periodic(FUNC(cmpchess_state::blink), attotime::from_msec(250)); // approximation
}
void compuchess_state::mk1(machine_config &config)
void cmpchess_state::mk1(machine_config &config)
{
cmpchess(config);
@ -374,12 +374,12 @@ void compuchess_state::mk1(machine_config &config)
config.set_default_layout(layout_novag_mk1);
}
void compuchess_state::cnc(machine_config &config)
void cmpchess_state::cnc(machine_config &config)
{
mk1(config);
/* basic machine hardware */
m_maincpu->set_addrmap(AS_IO, &compuchess_state::cnc_io);
m_maincpu->set_addrmap(AS_IO, &cmpchess_state::cnc_io);
config.set_default_layout(layout_cncchess);
@ -387,7 +387,7 @@ void compuchess_state::cnc(machine_config &config)
SPEAKER(config, "speaker").front_center();
BEEP(config, m_beeper, 2000); // wrong, see TODO
m_beeper->add_route(ALL_OUTPUTS, "speaker", 0.25);
TIMER(config, "beeper_off").configure_generic(FUNC(compuchess_state::beeper_off));
TIMER(config, "beeper_off").configure_generic(FUNC(cmpchess_state::beeper_off));
}
@ -420,8 +420,8 @@ ROM_END
Drivers
******************************************************************************/
// YEAR NAME PARENT CMP MACHINE INPUT STATE INIT COMPANY, FULLNAME, FLAGS
CONS( 1977, cmpchess, 0, 0, cmpchess, cmpchess, compuchess_state, empty_init, "Data Cash Systems", "CompuChess", MACHINE_NO_SOUND_HW | MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
CONS( 1978, ccmk1, cmpchess, 0, mk1, cmpchess, compuchess_state, empty_init, "Novag", "Chess Champion: MK I", MACHINE_NO_SOUND_HW | MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
// YEAR NAME PARENT CMP MACHINE INPUT STATE INIT COMPANY, FULLNAME, FLAGS
CONS( 1977, cmpchess, 0, 0, cmpchess, cmpchess, cmpchess_state, empty_init, "Data Cash Systems / Staid", "CompuChess", MACHINE_NO_SOUND_HW | MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
CONS( 1978, ccmk1, cmpchess, 0, mk1, cmpchess, cmpchess_state, empty_init, "Novag", "Chess Champion: MK I", MACHINE_NO_SOUND_HW | MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
CONS( 1979, cncchess, 0, 0, cnc, cncchess, compuchess_state, empty_init, "Conic", "Computer Chess (Conic)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
CONS( 1979, cncchess, 0, 0, cnc, cncchess, cmpchess_state, empty_init, "Conic", "Computer Chess (Conic)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )

View File

@ -375,7 +375,7 @@ static INPUT_PORTS_START( eas )
PORT_INCLUDE( fidel_clockdiv_4 )
PORT_START("IN.0")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_G) PORT_NAME("Game Control") // labeled RESET on the Prestige, but led display still says - G C -
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_G) PORT_NAME("Game Control")
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_SPACE) PORT_NAME("Speaker")
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_NAME("PB / King")
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD) PORT_NAME("PV / Queen")
@ -390,6 +390,13 @@ static INPUT_PORTS_START( eas )
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_V) PORT_NAME("RV")
INPUT_PORTS_END
static INPUT_PORTS_START( pc )
PORT_INCLUDE( eas )
PORT_MODIFY("IN.0")
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) PORT_NAME("Reset") // led display still says - G C -
INPUT_PORTS_END
static INPUT_PORTS_START( eag )
PORT_INCLUDE( fidel_clockdiv_4 )
@ -745,8 +752,8 @@ CONS( 1983, feasbu, 0, 0, eas, eas, elite_state, empty_init, "Fi
CONS( 1984, feasgla, feasbu, 0, eas, eas, elite_state, empty_init, "Fidelity Electronics", "Elite A/S Challenger (Glasgow program)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_TIMING )
CONS( 1984, fepriv, feasbu, 0, eas_priv, eas, elite_state, empty_init, "Fidelity Deutschland", "Elite Private Line (red version)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_TIMING )
CONS( 1982, fpres, 0, 0, pc, eas, elite_state, empty_init, "Fidelity Electronics", "Prestige Challenger (original program)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_TIMING )
CONS( 1983, fpresbu, fpres, 0, pc, eas, elite_state, empty_init, "Fidelity Electronics", "Prestige Challenger (Budapest program)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_TIMING )
CONS( 1982, fpres, 0, 0, pc, pc, elite_state, empty_init, "Fidelity Electronics", "Prestige Challenger (original program)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_TIMING )
CONS( 1983, fpresbu, fpres, 0, pc, pc, elite_state, empty_init, "Fidelity Electronics", "Prestige Challenger (Budapest program)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_TIMING )
CONS( 1986, feag, 0, 0, eag, eag, eag_state, empty_init, "Fidelity Electronics", "Elite Avant Garde (model 6081)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_TIMING )
CONS( 1986, feag2100, feag, 0, eag2100, eag, eag_state, init_eag2100, "Fidelity Electronics", "Elite Avant Garde 2100", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_TIMING )

View File

@ -36,14 +36,8 @@
</element>
<element name="hl" defstate="0">
<text string=" ">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</text>
<rect state="1">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</rect>
<text string=" "/>
<rect state="1"><color red="0" green="0" blue="0" /></rect>
</element>
<element name="text_r1"><text string="MEM"><color red="0.3" green="0.3" blue="0.3" /></text></element>

View File

@ -1,75 +1,364 @@
<?xml version="1.0"?>
<mamelayout version="2">
<!-- NOTE: no chesspieces simulation here, Novag MK II didn't have a built-in chessboard -->
<!-- NOTE: no chesspieces simulation here, Commodore Chessmate didn't have a built-in chessboard -->
<!-- define elements -->
<element name="white"><rect><color red="0.88" green="0.88" blue="0.9" /></rect></element>
<element name="disk_white"><disk><color red="0.88" green="0.88" blue="0.9" /></disk></element>
<element name="black"><rect><color red="0.05" green="0.05" blue="0.05" /></rect></element>
<element name="red"><rect><color red="1.0" green="0.1" blue="0.15" /></rect></element>
<element name="dred"><rect><color red="0.3" green="0.1" blue="0.0" /></rect></element>
<element name="yellow"><rect><color red="0.75" green="0.55" blue="0.2" /></rect></element>
<element name="disk_yellow"><disk><color red="0.75" green="0.55" blue="0.2" /></disk></element>
<element name="digit" defstate="0">
<led7seg>
<color red="0.75" green="0.0" blue="0.0" />
</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.1" blue="0.15" /></disk>
<disk state="0"><color red="0.15" green="0.02" blue="0.03" /></disk>
</element>
<element name="ledi" defstate="1">
<disk state="1"><color red="0.15" green="0.02" blue="0.03" /></disk>
<disk state="0"><color red="1.0" green="0.1" blue="0.15" /></disk>
</element>
<element name="but">
<rect>
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.05" green="0.05" blue="0.05" />
</rect>
<rect>
<bounds x="0.1" y="0.1" width="0.8" height="0.8" />
<color red="0.3" green="0.1" blue="0.0" />
</rect>
</element>
<element name="hl" defstate="0">
<text string=" ">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</text>
<disk state="1">
<color red="0.75" green="0.0" blue="0.0" />
</disk>
<disk state="0">
<color red="0.09375" green="0.0" blue="0.0" />
</disk>
</element>
<element name="ledi" defstate="0">
<disk state="0">
<color red="0.75" green="0.0" blue="0.0" />
</disk>
<disk state="1">
<color red="0.09375" green="0.0" blue="0.0" />
<bounds x="0.12" y="0.12" width="0.76" height="0.76" />
<color red="1.0" green="1.0" blue="1.0" />
</disk>
</element>
<element name="labels">
<text string="+">
<bounds x="0" y="65" width="8" height="8" />
</text>
<text string="LOSE">
<bounds x="31" y="65" width="16" height="8" />
</text>
<text string="BLACK">
<bounds x="66" y="65" width="16" height="8" />
</text>
<text string="WHITE">
<bounds x="100" y="65" width="16" height="8" />
</text>
<element name="text_l1">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="A"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_l2">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="B"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_l3">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="C"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_l4">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="D"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_l5">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="E"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_l6">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="F"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_l7">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="G"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_l8">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="H"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<view name="Default Layout">
<bezel name="labels" element="labels">
<bounds left="0" top="65" right="133" bottom="73" />
</bezel>
<element name="text_n1">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="1"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_n2">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="2"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_n3">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="3"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_n4">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="4"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_n5">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="5"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_n6">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="6"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_n7">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="7"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_n8">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="8"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<bezel name="digit0" element="digit">
<bounds x="24" y="0" width="22" height="27" />
</bezel>
<bezel name="digit1" element="digit">
<bounds x="53" y="0" width="22" height="27" />
</bezel>
<bezel name="digit2" element="digit">
<bounds x="82" y="0" width="22" height="27" />
</bezel>
<bezel name="digit3" element="digit">
<bounds x="111" y="0" width="22" height="27" />
</bezel>
<element name="text_ll">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="WHITE"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_lr">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="BLACK"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_from">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="FROM"><color red="0.0" green="0.0" blue="0.0" /></text>
</element>
<element name="text_to">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="TO"><color red="0.0" green="0.0" blue="0.0" /></text>
</element>
<element name="text_time">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="TIME" align="1"><color red="0.0" green="0.0" blue="0.0" /></text>
</element>
<element name="text_twhite">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="WHITE" align="1"><color red="0.0" green="0.0" blue="0.0" /></text>
</element>
<element name="text_tblack">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="BLACK" align="1"><color red="0.0" green="0.0" blue="0.0" /></text>
</element>
<element name="text_white">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="WHITE"><color red="0.0" green="0.0" blue="0.0" /></text>
</element>
<element name="text_black">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="BLACK"><color red="0.0" green="0.0" blue="0.0" /></text>
</element>
<element name="text_u1">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="CHECK"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_u2a">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="CHESSmate"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_u2b">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="LOSES"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_u3">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="CHESSmate" align="1"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_u4">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="PLAYING"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_u5">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="IS"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_m1">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="NEW GAME"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_m2">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="CLEAR"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_m3">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="ENTER"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_up">
<rect><color red="0.3" green="0.1" blue="0.0" /></rect>
<text string="&#x2191;"><color red="0.88" green="0.88" blue="0.9" /></text>
</element>
<element name="text_l2a">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="BOARD"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_l3a">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="CHESS"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_l4a">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="DISPLAY"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_l5a">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="STOP"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_l6a">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="SKILL"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_l7a">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="GAME"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_l2b">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="VERIFY"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_l3b">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="CLOCK"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_l4b">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="TIME"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_l5b">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="CLOCK"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_l6b">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="LEVEL"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_l7b">
<rect><color red="0.88" green="0.88" blue="0.9" /></rect>
<text string="MOVES"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<!-- build screen -->
<view name="Internal Layout">
<bounds left="-2" right="48" top="14.5" bottom="53" />
<bezel element="white"><bounds x="-2" y="14.5" width="50" height="38.5" /></bezel>
<bezel element="text_from"><bounds x="8.5" y="15.9" width="10.5" height="1.5" /></bezel>
<bezel element="text_to"><bounds x="27" y="15.9" width="10.5" height="1.5" /></bezel>
<bezel element="text_time"><bounds x="4.2" y="18.8" width="8" height="1.5" /></bezel>
<bezel element="text_twhite"><bounds x="4.2" y="20.2" width="8" height="1.5" /></bezel>
<bezel element="text_time"><bounds x="38" y="18.8" width="8" height="1.5" /></bezel>
<bezel element="text_tblack"><bounds x="38" y="20.2" width="8" height="1.5" /></bezel>
<bezel element="black"><bounds x="8.5" y="17.5" width="4" height="5.5" /></bezel>
<bezel element="black"><bounds x="15" y="17.5" width="4" height="5.5" /></bezel>
<bezel element="black"><bounds x="27" y="17.5" width="4" height="5.5" /></bezel>
<bezel element="black"><bounds x="33.5" y="17.5" width="4" height="5.5" /></bezel>
<bezel name="digit0" element="digit"><bounds x="9.3" y="18.4" width="2.4" height="3.7" /></bezel>
<bezel name="digit1" element="digit"><bounds x="15.8" y="18.4" width="2.4" height="3.7" /></bezel>
<bezel name="digit2" element="digit"><bounds x="27.8" y="18.4" width="2.4" height="3.7" /></bezel>
<bezel name="digit3" element="digit"><bounds x="34.3" y="18.4" width="2.4" height="3.7" /></bezel>
<bezel element="red"><bounds x="8.9" y="17.9" width="3.2" height="4.7" /><color alpha="0.38" /></bezel>
<bezel element="red"><bounds x="15.4" y="17.9" width="3.2" height="4.7" /><color alpha="0.38" /></bezel>
<bezel element="red"><bounds x="27.4" y="17.9" width="3.2" height="4.7" /><color alpha="0.38" /></bezel>
<bezel element="red"><bounds x="33.9" y="17.9" width="3.2" height="4.7" /><color alpha="0.38" /></bezel>
<bezel element="text_white"><bounds x="26" y="24.4" width="6" height="1.5" /></bezel>
<bezel element="text_black"><bounds x="38" y="24.4" width="6" height="1.5" /></bezel>
<bezel element="but"><bounds x="3" y="26" width="4" height="4" /></bezel>
<bezel element="but"><bounds x="15" y="26" width="4" height="4" /></bezel>
<bezel element="black"><bounds x="27" y="26" width="4" height="4" /></bezel>
<bezel element="yellow"><bounds x="27.4" y="26.4" width="3.2" height="3.2" /></bezel>
<bezel element="but"><bounds x="39" y="26" width="4" height="4" /></bezel>
<bezel element="yellow"><bounds x="4.45" y="26.41" width="1.1" height="3.18" /></bezel>
<bezel element="disk_yellow"><bounds x="3.9" y="26.9" width="2.2" height="2.2" /></bezel>
<bezel element="dred"><bounds x="4.25" y="29.2" width="1.5" height="0.25" /></bezel>
<bezel element="yellow"><bounds x="16.05" y="27.05" width="1.9" height="1.9" /></bezel>
<bezel element="disk_yellow"><bounds x="15.9" y="26.9" width="2.2" height="2.2" /></bezel>
<bezel name="4.0" element="led"><bounds x="4.25" y="27.25" width="1.5" height="1.5" /></bezel>
<bezel name="4.2" element="led"><bounds x="16.25" y="27.25" width="1.5" height="1.5" /></bezel>
<bezel name="4.1" element="led"><bounds x="28.25" y="27.25" width="1.5" height="1.5" /></bezel>
<bezel name="4.1" element="ledi"><bounds x="40.25" y="27.25" width="1.5" height="1.5" /></bezel>
<bezel element="text_u1"><bounds x="1" y="30.1" width="8" height="1.2" /></bezel>
<bezel element="text_u2a"><bounds x="13" y="30.1" width="8" height="1.2" /></bezel>
<bezel element="text_u2b"><bounds x="13" y="31.2" width="8" height="1.2" /></bezel>
<bezel element="text_u3"><bounds x="27" y="30.1" width="8" height="1.2" /></bezel>
<bezel element="text_u4"><bounds x="37" y="30.1" width="8" height="1.2" /></bezel>
<bezel element="text_u5"><bounds x="33" y="30.1" width="4" height="1.2" /></bezel>
<bezel element="but"><bounds x="3" y="33" width="4" height="4" /></bezel>
<bezel element="but"><bounds x="27" y="33" width="4" height="4" /></bezel>
<bezel element="but"><bounds x="39" y="33" width="4" height="4" /></bezel>
<bezel element="text_m1"><bounds x="1" y="37.1" width="8" height="1.2" /></bezel>
<bezel element="text_m2"><bounds x="26" y="37.1" width="6" height="1.2" /></bezel>
<bezel element="text_m3"><bounds x="38" y="37.1" width="6" height="1.2" /></bezel>
<bezel element="disk_white"><bounds x="4.25" y="34.25" width="1.5" height="1.5" /></bezel>
<bezel element="white"><bounds x="28.25" y="34.25" width="1.5" height="1.5" /></bezel>
<bezel element="text_up"><bounds x="39.5" y="33.5" width="3" height="2.4" /></bezel>
<bezel element="hl" inputtag="RESET" inputmask="0x01"><bounds x="3" y="33" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x10"><bounds x="27" y="33" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x08"><bounds x="39" y="33" width="4" height="4" /><color alpha="0.15" /></bezel>
<repeat count="8">
<param name="x1" start="0" increment="6" />
<param name="x2" start="0.5" increment="6" />
<param name="i" start="1" increment="1" />
<bezel element="but"><bounds x="~x1~" y="40" width="4" height="4" /></bezel>
<bezel element="text_l~i~"><bounds x="~x2~" y="40.6" width="3" height="2.8" /></bezel>
</repeat>
<repeat count="8">
<param name="x1" start="0" increment="6" />
<param name="x2" start="0.5" increment="6" />
<param name="i" start="1" increment="1" />
<bezel element="but"><bounds x="~x1~" y="47" width="4" height="4" /></bezel>
<bezel element="text_n~i~"><bounds x="~x2~" y="47.6" width="3" height="2.8" /></bezel>
</repeat>
<repeat count="6">
<param name="x" start="5" increment="6" />
<param name="i" start="2" increment="1" />
<bezel element="text_l~i~a"><bounds x="~x~" y="44.1" width="6" height="1.2" /></bezel>
<bezel element="text_l~i~b"><bounds x="~x~" y="45.2" width="6" height="1.2" /></bezel>
</repeat>
<bezel element="text_ll"><bounds x="-1" y="44.65" width="6" height="1.2" /></bezel>
<bezel element="text_lr"><bounds x="41" y="44.65" width="6" height="1.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x20"><bounds x="0" y="40" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x10"><bounds x="6" y="40" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x08"><bounds x="12" y="40" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x04"><bounds x="18" y="40" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x02"><bounds x="24" y="40" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x01"><bounds x="30" y="40" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x40"><bounds x="36" y="40" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x20"><bounds x="42" y="40" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x20"><bounds x="0" y="47" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x10"><bounds x="6" y="47" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x08"><bounds x="12" y="47" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x04"><bounds x="18" y="47" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x02"><bounds x="24" y="47" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x01"><bounds x="30" y="47" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.3" inputmask="0x40"><bounds x="36" y="47" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hl" inputtag="IN.3" inputmask="0x20"><bounds x="42" y="47" width="4" height="4" /><color alpha="0.15" /></bezel>
<bezel name="4.0" element="led">
<bounds x="0" y="75" width="5" height="5" />
</bezel>
<bezel name="4.2" element="led">
<bounds x="39" y="75" width="5" height="5" />
</bezel>
<bezel name="4.1" element="led">
<bounds x="78" y="75" width="5" height="5" />
</bezel>
<bezel name="4.1" element="ledi">
<bounds x="116" y="75" width="5" height="5" />
</bezel>
</view>
</mamelayout>

View File

@ -15,14 +15,8 @@
</element>
<element name="hl" defstate="0">
<text string=" ">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</text>
<rect state="1">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</rect>
<text string=" "/>
<rect state="1"><color red="0" green="0" blue="0" /></rect>
</element>
<element name="reset" defstate="0">

View File

@ -23,14 +23,8 @@
</element>
<element name="hl" defstate="0">
<text string=" ">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</text>
<rect state="1">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</rect>
<text string=" "/>
<rect state="1"><color red="0" green="0" blue="0" /></rect>
</element>
<element name="text_br">

View File

@ -3,7 +3,7 @@
<!-- define elements -->
<element name="static_gray"><rect><color red="0.6" green="0.6" blue="0.6" /></rect></element>
<element name="static_gray"><rect><color red="0.2" green="0.2" blue="0.2" /></rect></element>
<element name="digit" defstate="0">
<led7seg><color red="1.0" green="0.1" blue="0.15" /></led7seg>
@ -21,76 +21,76 @@
</text>
<rect state="1">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
<color red="1.0" green="1.0" blue="1.0" />
</rect>
</element>
<element name="text_from"><text string="FROM"><color red="0.6" green="0.6" blue="0.6" /></text></element>
<element name="text_to"><text string="TO"><color red="0.6" green="0.6" blue="0.6" /></text></element>
<element name="text_from"><text string="FROM"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_to"><text string="TO"><color red="0.8" green="0.8" blue="0.8" /></text></element>
<element name="text_b1">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="RE"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="RE"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b2">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="spk"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="spk"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b3">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="CL"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="CL"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b4">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="EN"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="EN"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b5">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="LV"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="LV"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b6">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="DM"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="DM"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b7">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="PB"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="PB"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b8">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="PV"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="PV"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b9">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="A1"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="A1"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b10">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="b2"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="b2"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b11">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="C3"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="C3"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b12">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="d4"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="d4"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b13">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="E5"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="E5"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b14">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="F6"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="F6"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b15">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="g7"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="g7"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_b16">
<rect><color red="0.6" green="0.6" blue="0.6" /></rect>
<text string="H8"><color red="0.04" green="0.04" blue="0.04" /></text>
<rect><color red="0.2" green="0.2" blue="0.2" /></rect>
<text string="H8"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
@ -148,22 +148,22 @@
<bezel element="text_b15"><bounds x="9.1" y="32.5" width="3.8" height="2" /></bezel>
<bezel element="text_b16"><bounds x="13.6" y="32.5" width="3.8" height="2" /></bezel>
<bezel element="hl" inputtag="RESET" inputmask="0x01"><bounds x="0" y="20" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x01"><bounds x="4.5" y="20" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x01"><bounds x="9" y="20" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.3" inputmask="0x01"><bounds x="13.5" y="20" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x02"><bounds x="0" y="24" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x02"><bounds x="4.5" y="24" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x02"><bounds x="9" y="24" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.3" inputmask="0x02"><bounds x="13.5" y="24" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x04"><bounds x="0" y="28" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x04"><bounds x="4.5" y="28" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x04"><bounds x="9" y="28" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.3" inputmask="0x04"><bounds x="13.5" y="28" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x08"><bounds x="0" y="32" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x08"><bounds x="4.5" y="32" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x08"><bounds x="9" y="32" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.3" inputmask="0x08"><bounds x="13.5" y="32" width="4" height="3" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="RESET" inputmask="0x01"><bounds x="0" y="20" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x01"><bounds x="4.5" y="20" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x01"><bounds x="9" y="20" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.3" inputmask="0x01"><bounds x="13.5" y="20" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x02"><bounds x="0" y="24" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x02"><bounds x="4.5" y="24" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x02"><bounds x="9" y="24" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.3" inputmask="0x02"><bounds x="13.5" y="24" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x04"><bounds x="0" y="28" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x04"><bounds x="4.5" y="28" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x04"><bounds x="9" y="28" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.3" inputmask="0x04"><bounds x="13.5" y="28" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x08"><bounds x="0" y="32" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x08"><bounds x="4.5" y="32" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x08"><bounds x="9" y="32" width="4" height="3" /><color alpha="0.13" /></bezel>
<bezel element="hl" inputtag="IN.3" inputmask="0x08"><bounds x="13.5" y="32" width="4" height="3" /><color alpha="0.13" /></bezel>
</view>
</mamelayout>

View File

@ -15,14 +15,8 @@
</element>
<element name="hl" defstate="0">
<text string=" ">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</text>
<rect state="1">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</rect>
<text string=" "/>
<rect state="1"><color red="0" green="0" blue="0" /></rect>
</element>
<element name="reset" defstate="0">

View File

@ -3,73 +3,211 @@
<!-- NOTE: no chesspieces simulation here, Novag MK II didn't have a built-in chessboard -->
<!-- define elements -->
<element name="blackb"><rect><color red="0" green="0" blue="0" /></rect></element>
<element name="black"><rect><color red="0.12" green="0.12" blue="0.12" /></rect></element>
<element name="white"><rect><color red="0.8" green="0.8" blue="0.8" /></rect></element>
<element name="white2"><rect><color red="0.65" green="0.65" blue="0.65" /></rect></element>
<element name="orange"><rect><color red="0.8" green="0.4" blue="0.1" /></rect></element>
<element name="brown"><rect><color red="0.4" green="0.2" blue="0.1" /></rect></element>
<element name="digit" defstate="0">
<led7seg>
<color red="0.75" green="0.0" blue="0.0" />
</led7seg>
<led7seg><color red="1.0" green="0.1" blue="0.15" /></led7seg>
</element>
<element name="led" defstate="0">
<disk state="1">
<color red="0.75" green="0.0" blue="0.0" />
</disk>
<disk state="0">
<color red="0.09375" green="0.0" blue="0.0" />
</disk>
<disk state="1"><color red="1.0" green="0.1" blue="0.15" /></disk>
<disk state="0"><color red="0.15" green="0.02" blue="0.03" /></disk>
</element>
<element name="ledi" defstate="0">
<disk state="0">
<color red="0.75" green="0.0" blue="0.0" />
</disk>
<disk state="1">
<color red="0.09375" green="0.0" blue="0.0" />
</disk>
<element name="ledi" defstate="1">
<disk state="1"><color red="0.15" green="0.02" blue="0.03" /></disk>
<disk state="0"><color red="1.0" green="0.1" blue="0.15" /></disk>
</element>
<element name="labels">
<text string="+">
<bounds x="0" y="65" width="8" height="8" />
</text>
<text string="LOSE">
<bounds x="31" y="65" width="16" height="8" />
</text>
<text string="BLACK">
<bounds x="66" y="65" width="16" height="8" />
</text>
<text string="WHITE">
<bounds x="100" y="65" width="16" height="8" />
</text>
<element name="hl" defstate="0">
<text string=" "/>
<rect state="1"><color red="0" green="0" blue="0" /></rect>
</element>
<view name="Default Layout">
<bezel name="labels" element="labels">
<bounds left="0" top="65" right="133" bottom="73" />
</bezel>
<element name="text_ba">
<rect><color red="0.4" green="0.2" blue="0.1" /></rect>
<text string="A"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_bb">
<rect><color red="0.4" green="0.2" blue="0.1" /></rect>
<text string="B"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_bc">
<rect><color red="0.4" green="0.2" blue="0.1" /></rect>
<text string="C"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_bd">
<rect><color red="0.4" green="0.2" blue="0.1" /></rect>
<text string="D"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_be">
<rect><color red="0.4" green="0.2" blue="0.1" /></rect>
<text string="E"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_bf">
<rect><color red="0.4" green="0.2" blue="0.1" /></rect>
<text string="F"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_bg">
<rect><color red="0.4" green="0.2" blue="0.1" /></rect>
<text string="G"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<element name="text_bh">
<rect><color red="0.4" green="0.2" blue="0.1" /></rect>
<text string="H"><color red="0.8" green="0.8" blue="0.8" /></text>
</element>
<bezel name="digit0" element="digit">
<bounds x="24" y="0" width="22" height="27" />
</bezel>
<bezel name="digit1" element="digit">
<bounds x="53" y="0" width="22" height="27" />
</bezel>
<bezel name="digit2" element="digit">
<bounds x="82" y="0" width="22" height="27" />
</bezel>
<bezel name="digit3" element="digit">
<bounds x="111" y="0" width="22" height="27" />
</bezel>
<element name="text_b1">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="1"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_b2">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="2"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_b3">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="3"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_b4">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="4"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_b5">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="5"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_b6">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="6"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_b7">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="7"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_b8">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="8"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_u01"><text string="+"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_u02"><text string="LOSE"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l01"><text string="NEW GAME"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l02"><text string="CLEAR"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l03"><text string="ENTER"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_lb"><text string="BOARD VERIFY"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_lc"><text string="CHESS CLOCK"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_ld"><text string="DISPLAY TIME"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_le"><text string="STOP CLOCK"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_lf"><text string="LEVEL"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_lg"><text string="GAME MOVES"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<!-- build screen -->
<view name="Internal Layout">
<bounds left="-1.75" right="24" top="-3.5" bottom="39.75" />
<bezel name="digit0" element="digit"><bounds x="3.125" y="-2" width="4" height="6" /></bezel>
<bezel name="digit1" element="digit"><bounds x="7.125" y="-2" width="4" height="6" /></bezel>
<bezel name="digit2" element="digit"><bounds x="11.125" y="-2" width="4" height="6" /></bezel>
<bezel name="digit3" element="digit"><bounds x="15.125" y="-2" width="4" height="6" /></bezel>
<bezel element="black"><bounds x="-1.75" y="5.5" width="25.75" height="0.5" /></bezel>
<bezel name="4.0" element="led"><bounds x="-1.375" y="7.1" width="1" height="1" /></bezel>
<bezel name="4.2" element="led"><bounds x="4.625" y="7.1" width="1" height="1" /></bezel>
<bezel name="4.1" element="led"><bounds x="10.625" y="7.1" width="1" height="1" /></bezel>
<bezel name="4.1" element="ledi"><bounds x="16.625" y="7.1" width="1" height="1" /></bezel>
<bezel element="text_u01"><bounds x="-2.375" y="8.35" width="3" height="1" /></bezel>
<bezel element="text_u02"><bounds x="2.625" y="8.35" width="5" height="1" /></bezel>
<bezel element="white2"><bounds x="10.725" y="8.45" width="0.8" height="0.8" /></bezel>
<bezel element="blackb"><bounds x="10.85" y="8.575" width="0.55" height="0.55" /></bezel>
<bezel element="white2"><bounds x="16.725" y="8.45" width="0.8" height="0.8" /></bezel>
<bezel element="orange"><bounds x="0" y="10" width="4.25" height="4.25" /></bezel>
<bezel element="orange"><bounds x="6" y="10" width="4.25" height="4.25" /></bezel>
<bezel element="orange"><bounds x="12" y="10" width="4.25" height="4.25" /></bezel>
<bezel element="text_l01"><bounds x="-1" y="14.35" width="6.25" height="1" /></bezel>
<bezel element="text_l02"><bounds x="5" y="14.35" width="6.25" height="1" /></bezel>
<bezel element="text_l03"><bounds x="11" y="14.35" width="6.25" height="1" /></bezel>
<bezel element="brown"><bounds x="0" y="16" width="4.25" height="4.25" /></bezel>
<bezel element="brown"><bounds x="6" y="16" width="4.25" height="4.25" /></bezel>
<bezel element="brown"><bounds x="12" y="16" width="4.25" height="4.25" /></bezel>
<bezel element="brown"><bounds x="18" y="16" width="4.25" height="4.25" /></bezel>
<bezel element="brown"><bounds x="0" y="22" width="4.25" height="4.25" /></bezel>
<bezel element="brown"><bounds x="6" y="22" width="4.25" height="4.25" /></bezel>
<bezel element="brown"><bounds x="12" y="22" width="4.25" height="4.25" /></bezel>
<bezel element="brown"><bounds x="18" y="22" width="4.25" height="4.25" /></bezel>
<bezel element="text_lb"><bounds x="5" y="20.35" width="6.25" height="1" /></bezel>
<bezel element="text_lc"><bounds x="11" y="20.35" width="6.25" height="1" /></bezel>
<bezel element="text_ld"><bounds x="17" y="20.35" width="6.25" height="1" /></bezel>
<bezel element="text_le"><bounds x="-1" y="26.35" width="6.25" height="1" /></bezel>
<bezel element="text_lf"><bounds x="5" y="26.35" width="6.25" height="1" /></bezel>
<bezel element="text_lg"><bounds x="11" y="26.35" width="6.25" height="1" /></bezel>
<bezel element="white2"><bounds x="1.725" y="20.5" width="0.8" height="0.8" /></bezel>
<bezel element="blackb"><bounds x="1.85" y="20.625" width="0.55" height="0.55" /></bezel>
<bezel element="white2"><bounds x="19.725" y="26.5" width="0.8" height="0.8" /></bezel>
<bezel element="white"><bounds x="0" y="28" width="4.25" height="4.25" /></bezel>
<bezel element="white"><bounds x="6" y="28" width="4.25" height="4.25" /></bezel>
<bezel element="white"><bounds x="12" y="28" width="4.25" height="4.25" /></bezel>
<bezel element="white"><bounds x="18" y="28" width="4.25" height="4.25" /></bezel>
<bezel element="white"><bounds x="0" y="34" width="4.25" height="4.25" /></bezel>
<bezel element="white"><bounds x="6" y="34" width="4.25" height="4.25" /></bezel>
<bezel element="white"><bounds x="12" y="34" width="4.25" height="4.25" /></bezel>
<bezel element="white"><bounds x="18" y="34" width="4.25" height="4.25" /></bezel>
<bezel element="text_ba"><bounds x="0.1" y="16.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_bb"><bounds x="6.1" y="16.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_bc"><bounds x="12.1" y="16.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_bd"><bounds x="18.1" y="16.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_be"><bounds x="0.1" y="22.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_bf"><bounds x="6.1" y="22.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_bg"><bounds x="12.1" y="22.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_bh"><bounds x="18.1" y="22.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_b1"><bounds x="0.1" y="28.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_b2"><bounds x="6.1" y="28.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_b3"><bounds x="12.1" y="28.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_b4"><bounds x="18.1" y="28.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_b5"><bounds x="0.1" y="34.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_b6"><bounds x="6.1" y="34.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_b7"><bounds x="12.1" y="34.8" width="4.05" height="2.6" /></bezel>
<bezel element="text_b8"><bounds x="18.1" y="34.8" width="4.05" height="2.6" /></bezel>
<bezel element="hl" inputtag="RESET" inputmask="0x01"><bounds x="0" y="10" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x10"><bounds x="6" y="10" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x08"><bounds x="12" y="10" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x20"><bounds x="0" y="16" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x10"><bounds x="6" y="16" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x08"><bounds x="12" y="16" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x04"><bounds x="18" y="16" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x02"><bounds x="0" y="22" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x01"><bounds x="6" y="22" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x40"><bounds x="12" y="22" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x20"><bounds x="18" y="22" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x20"><bounds x="0" y="28" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x10"><bounds x="6" y="28" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x08"><bounds x="12" y="28" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x04"><bounds x="18" y="28" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x02"><bounds x="0" y="34" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.2" inputmask="0x01"><bounds x="6" y="34" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.3" inputmask="0x40"><bounds x="12" y="34" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.3" inputmask="0x20"><bounds x="18" y="34" width="4.25" height="4.25" /><color alpha="0.2" /></bezel>
<bezel name="4.0" element="led">
<bounds x="0" y="75" width="5" height="5" />
</bezel>
<bezel name="4.2" element="led">
<bounds x="39" y="75" width="5" height="5" />
</bezel>
<bezel name="4.1" element="led">
<bounds x="78" y="75" width="5" height="5" />
</bezel>
<bezel name="4.1" element="ledi">
<bounds x="116" y="75" width="5" height="5" />
</bezel>
</view>
</mamelayout>

View File

@ -3,73 +3,228 @@
<!-- NOTE: no chesspieces simulation here, Novag MK II didn't have a built-in chessboard -->
<!-- define elements -->
<element name="blackb"><rect><color red="0" green="0" blue="0" /></rect></element>
<element name="black"><rect><color red="0.12" green="0.12" blue="0.12" /></rect></element>
<element name="white"><rect><color red="0.8" green="0.8" blue="0.8" /></rect></element>
<element name="white2"><rect><color red="0.65" green="0.65" blue="0.65" /></rect></element>
<element name="orange"><rect><color red="0.8" green="0.4" blue="0.1" /></rect></element>
<element name="digit" defstate="0">
<led7seg>
<color red="0.75" green="0.0" blue="0.0" />
</led7seg>
<led7seg><color red="1.0" green="0.1" blue="0.15" /></led7seg>
</element>
<element name="led" defstate="0">
<disk state="1">
<color red="0.75" green="0.0" blue="0.0" />
</disk>
<disk state="0">
<color red="0.09375" green="0.0" blue="0.0" />
</disk>
<disk state="1"><color red="1.0" green="0.1" blue="0.15" /></disk>
<disk state="0"><color red="0.15" green="0.02" blue="0.03" /></disk>
</element>
<element name="ledi" defstate="0">
<element name="ledi" defstate="1">
<disk state="1"><color red="0.15" green="0.02" blue="0.03" /></disk>
<disk state="0"><color red="1.0" green="0.1" blue="0.15" /></disk>
</element>
<element name="hl" defstate="0">
<text string=" "/>
<rect state="1"><color red="0" green="0" blue="0" /></rect>
</element>
<element name="sound" defstate="0">
<text string=" ">
<bounds x="0.0" y="0.0" width="3.7" height="1.8" />
<color red="0.0" green="0.0" blue="0.0" />
</text>
<disk state="0">
<color red="0.75" green="0.0" blue="0.0" />
<bounds x="0.0" y="0.0" width="1.8" height="1.8" />
<color red="0.4" green="0.4" blue="0.4" />
</disk>
<disk state="1">
<color red="0.09375" green="0.0" blue="0.0" />
<bounds x="1.9" y="0.0" width="1.8" height="1.8" />
<color red="0.4" green="0.4" blue="0.4" />
</disk>
</element>
<element name="labels">
<text string="+">
<bounds x="0" y="65" width="8" height="8" />
</text>
<text string="LOSE">
<bounds x="31" y="65" width="16" height="8" />
</text>
<text string="BLACK">
<bounds x="66" y="65" width="16" height="8" />
</text>
<text string="WHITE">
<bounds x="100" y="65" width="16" height="8" />
</text>
<element name="text_on"><text string="ON" align="1"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_off"><text string="OFF" align="2"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_n1">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="1" align="1"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_n2">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="2" align="1"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_n3">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="3" align="1"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_n4">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="4" align="1"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_n5">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="5" align="1"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_n6">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="6" align="1"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_n7">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="7" align="1"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_n8">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="8" align="1"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<view name="Default Layout">
<bezel name="labels" element="labels">
<bounds left="0" top="65" right="133" bottom="73" />
</bezel>
<element name="text_l1">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="A" align="2"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_l2">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="B" align="2"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_l3">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="C" align="2"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_l4">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="D" align="2"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_l5">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="E" align="2"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_l6">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="F" align="2"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_l7">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="G" align="2"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_l8">
<rect><color red="0.8" green="0.8" blue="0.8" /></rect>
<text string="H" align="2"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<bezel name="digit0" element="digit">
<bounds x="24" y="0" width="22" height="27" />
</bezel>
<bezel name="digit1" element="digit">
<bounds x="53" y="0" width="22" height="27" />
</bezel>
<bezel name="digit2" element="digit">
<bounds x="82" y="0" width="22" height="27" />
</bezel>
<bezel name="digit3" element="digit">
<bounds x="111" y="0" width="22" height="27" />
</bezel>
<element name="text_u1"><text string="+"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_u2"><text string="LOSE"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l01"><text string="NEW GAME"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l02"><text string="CLEAR"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l03">
<rect><color red="0.8" green="0.4" blue="0.1" /></rect>
<text string="ENTER"><color red="0.05" green="0.05" blue="0.05" /></text>
</element>
<element name="text_l07"><text string="SOUND"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_pp"><text string="[P]"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_pn"><text string="[N]"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_pb"><text string="[B]"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_pr"><text string="[R]"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_pq"><text string="[Q]"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l2a"><text string="BOARD"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l2b"><text string="VERIFY"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l3a"><text string="CHESS"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l3b"><text string="CLOCK"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l4a"><text string="DISPLAY"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l4b"><text string="TIME"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l5a"><text string="STOP"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l5b"><text string="CLOCK"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l6a"><text string="LEVEL"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l6b"><text string=" "><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l7a"><text string="GAME"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_l7b"><text string="MOVES"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<!-- build screen -->
<view name="Internal Layout">
<bounds left="-1.5" right="47.5" top="0" bottom="27.8" />
<bezel name="digit0" element="digit"><bounds x="2" y="1" width="4" height="6" /></bezel>
<bezel name="digit1" element="digit"><bounds x="6" y="1" width="4" height="6" /></bezel>
<bezel name="digit2" element="digit"><bounds x="10" y="1" width="4" height="6" /></bezel>
<bezel name="digit3" element="digit"><bounds x="14" y="1" width="4" height="6" /></bezel>
<bezel name="4.0" element="led"><bounds x="21" y="1" width="1" height="1" /></bezel>
<bezel name="4.2" element="led"><bounds x="26" y="1" width="1" height="1" /></bezel>
<bezel name="4.1" element="led"><bounds x="21" y="4.8" width="1" height="1" /></bezel>
<bezel name="4.1" element="ledi"><bounds x="26" y="4.8" width="1" height="1" /></bezel>
<bezel element="text_u1"><bounds x="20" y="1.9" width="3" height="1.5" /></bezel>
<bezel element="text_u2"><bounds x="25" y="2" width="3" height="1.4" /></bezel>
<bezel element="white2"><bounds x="21" y="6" width="1" height="1" /></bezel>
<bezel element="white2"><bounds x="26" y="6" width="1" height="1" /></bezel>
<bezel element="blackb"><bounds x="26.15" y="6.15" width="0.7" height="0.7" /></bezel>
<bezel element="black"><bounds x="-1.5" y="9" width="49" height="0.5" /></bezel>
<bezel element="orange"><bounds x="0" y="11.5" width="4" height="4" /></bezel>
<bezel element="orange"><bounds x="6" y="11.5" width="4" height="4" /></bezel>
<bezel element="orange"><bounds x="12" y="11.5" width="10" height="4" /></bezel>
<bezel element="text_l01"><bounds x="-2" y="15.7" width="8" height="1.5" /></bezel>
<bezel element="text_l02"><bounds x="6" y="15.7" width="4" height="1.5" /></bezel>
<bezel element="text_l03"><bounds x="13" y="12.4" width="8" height="2.2" /></bezel>
<bezel element="text_l07"><bounds x="23" y="15.7" width="6" height="1.5" /></bezel>
<bezel element="hl" inputtag="RESET" inputmask="0x01"><bounds x="0" y="11.5" width="4" height="4" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x10"><bounds x="6" y="11.5" width="4" height="4" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x08"><bounds x="12" y="11.5" width="10" height="4" /><color alpha="0.2" /></bezel>
<repeat count="8">
<param name="x" start="0" increment="6" />
<bezel element="white"><bounds x="~x~" y="20" width="4" height="4" /></bezel>
</repeat>
<repeat count="8">
<param name="x" start="0.4" increment="6" />
<param name="i" start="1" increment="1" />
<bezel element="text_n~i~"><bounds x="~x~" y="20.1" width="1.5" height="2" /></bezel>
</repeat>
<repeat count="8">
<param name="x" start="2.1" increment="6" />
<param name="i" start="1" increment="1" />
<bezel element="text_l~i~"><bounds x="~x~" y="21.9" width="1.5" height="2" /></bezel>
</repeat>
<bezel element="hl" inputtag="IN.0" inputmask="0x20"><bounds x="0" y="20" width="4" height="4" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x10"><bounds x="6" y="20" width="4" height="4" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x08"><bounds x="12" y="20" width="4" height="4" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x04"><bounds x="18" y="20" width="4" height="4" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x02"><bounds x="24" y="20" width="4" height="4" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.0" inputmask="0x01"><bounds x="30" y="20" width="4" height="4" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x40"><bounds x="36" y="20" width="4" height="4" /><color alpha="0.2" /></bezel>
<bezel element="hl" inputtag="IN.1" inputmask="0x20"><bounds x="42" y="20" width="4" height="4" /><color alpha="0.2" /></bezel>
<bezel element="text_pp"><bounds x="0" y="18.1" width="4" height="1.5" /></bezel>
<bezel element="text_pn"><bounds x="6" y="18.1" width="4" height="1.5" /></bezel>
<bezel element="text_pb"><bounds x="12" y="18.1" width="4" height="1.5" /></bezel>
<bezel element="text_pr"><bounds x="24" y="18.1" width="4" height="1.5" /></bezel>
<bezel element="text_pq"><bounds x="42" y="18.1" width="4" height="1.5" /></bezel>
<repeat count="6">
<param name="x" start="5" increment="6" />
<param name="i" start="2" increment="1" />
<bezel element="text_l~i~a"><bounds x="~x~" y="24.2" width="6" height="1.5" /></bezel>
<bezel element="text_l~i~b"><bounds x="~x~" y="25.7" width="6" height="1.5" /></bezel>
</repeat>
<bezel element="white2"><bounds x="1.3" y="24.5" width="1.4" height="1.4" /></bezel>
<bezel element="white2"><bounds x="43.3" y="24.5" width="1.4" height="1.4" /></bezel>
<bezel element="blackb"><bounds x="43.5" y="24.7" width="1.0" height="1.0" /></bezel>
<bezel element="black"><bounds x="24.25" y="12.9" width="3.5" height="1.4" /></bezel>
<bezel element="sound" inputtag="IN.4" inputmask="0x01"><bounds x="24.15" y="12.7" width="3.7" height="1.8" /></bezel>
<bezel element="text_on"><bounds x="24" y="14.5" width="4" height="1" /></bezel>
<bezel element="text_off"><bounds x="24" y="14.5" width="4" height="1" /></bezel>
<bezel name="4.0" element="led">
<bounds x="0" y="75" width="5" height="5" />
</bezel>
<bezel name="4.2" element="led">
<bounds x="39" y="75" width="5" height="5" />
</bezel>
<bezel name="4.1" element="led">
<bounds x="78" y="75" width="5" height="5" />
</bezel>
<bezel name="4.1" element="ledi">
<bounds x="116" y="75" width="5" height="5" />
</bezel>
</view>
</mamelayout>

View File

@ -18,14 +18,8 @@
</element>
<element name="hl" defstate="0">
<text string=" ">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</text>
<rect state="1">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</rect>
<text string=" "/>
<rect state="1"><color red="0" green="0" blue="0" /></rect>
</element>
<element name="text_b01a">
@ -182,10 +176,10 @@
<text string="CB"><color red="0.1" green="0.1" blue="0.1" /></text>
</element>
<element name="text_d1"><text string="TIME DISPLAY"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_d2"><text string="TIME SET"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_d3"><text string="CHANGE COLOR"><color red="0.9" green="0.9" blue="0.9" /></text></element> <!-- this label isn't on the real device -->
<element name="text_d4"><text string="NEW GAME"><color red="0.9" green="0.9" blue="0.9" /></text></element>
<element name="text_d1"><text string="TIME DISPLAY"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_d2"><text string="TIME SET"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<element name="text_d3"><text string="CHANGE COLOR"><color red="0.65" green="0.65" blue="0.65" /></text></element> <!-- this label isn't on the real device -->
<element name="text_d4"><text string="NEW GAME"><color red="0.65" green="0.65" blue="0.65" /></text></element>
<!-- build screen -->