Machines promoted to working

----------------------------
Fidelity Phantom Chess Challenger [Sandro Ronco]
This commit is contained in:
Sandro Ronco 2019-10-20 00:30:31 +02:00
parent 30f1f97f3b
commit a5886e8c0f
4 changed files with 975 additions and 11 deletions

View File

@ -600,6 +600,8 @@ static INPUT_PORTS_START( sensorboard )
PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<16 | 1<<7, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x07) PORT_NAME("Sensor H1")
PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<16 | 1<<8, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x08) PORT_NAME("Sensor I1")
PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<16 | 1<<9, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x09) PORT_NAME("Sensor J1")
PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<16 | 1<<10, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x0a) PORT_NAME("Sensor K1")
PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<16 | 1<<11, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x0b) PORT_NAME("Sensor L1")
PORT_START("RANK.2")
PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<17 | 1<<0, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x10) PORT_NAME("Sensor A2")
@ -612,6 +614,8 @@ static INPUT_PORTS_START( sensorboard )
PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<17 | 1<<7, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x17) PORT_NAME("Sensor H2")
PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<17 | 1<<8, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x18) PORT_NAME("Sensor I2")
PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<17 | 1<<9, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x19) PORT_NAME("Sensor J2")
PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<17 | 1<<10, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x1a) PORT_NAME("Sensor K2")
PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<17 | 1<<11, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x1b) PORT_NAME("Sensor L2")
PORT_START("RANK.3")
PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<18 | 1<<0, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x20) PORT_NAME("Sensor A3")
@ -624,6 +628,8 @@ static INPUT_PORTS_START( sensorboard )
PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<18 | 1<<7, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x27) PORT_NAME("Sensor H3")
PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<18 | 1<<8, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x28) PORT_NAME("Sensor I3")
PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<18 | 1<<9, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x29) PORT_NAME("Sensor J3")
PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<18 | 1<<10, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x2a) PORT_NAME("Sensor K3")
PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<18 | 1<<11, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x2b) PORT_NAME("Sensor L3")
PORT_START("RANK.4")
PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<19 | 1<<0, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x30) PORT_NAME("Sensor A4")
@ -636,6 +642,8 @@ static INPUT_PORTS_START( sensorboard )
PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<19 | 1<<7, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x37) PORT_NAME("Sensor H4")
PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<19 | 1<<8, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x38) PORT_NAME("Sensor I4")
PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<19 | 1<<9, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x39) PORT_NAME("Sensor J4")
PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<19 | 1<<10, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x3a) PORT_NAME("Sensor K4")
PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<19 | 1<<11, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x3b) PORT_NAME("Sensor L4")
PORT_START("RANK.5")
PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<20 | 1<<0, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x40) PORT_NAME("Sensor A5")
@ -648,6 +656,8 @@ static INPUT_PORTS_START( sensorboard )
PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<20 | 1<<7, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x47) PORT_NAME("Sensor H5")
PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<20 | 1<<8, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x48) PORT_NAME("Sensor I5")
PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<20 | 1<<9, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x49) PORT_NAME("Sensor J5")
PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<20 | 1<<10, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x4a) PORT_NAME("Sensor K5")
PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<20 | 1<<11, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x4b) PORT_NAME("Sensor L5")
PORT_START("RANK.6")
PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<21 | 1<<0, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x50) PORT_NAME("Sensor A6")
@ -660,6 +670,8 @@ static INPUT_PORTS_START( sensorboard )
PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<21 | 1<<7, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x57) PORT_NAME("Sensor H6")
PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<21 | 1<<8, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x58) PORT_NAME("Sensor I6")
PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<21 | 1<<9, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x59) PORT_NAME("Sensor J6")
PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<21 | 1<<10, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x5a) PORT_NAME("Sensor K6")
PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<21 | 1<<11, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x5b) PORT_NAME("Sensor L6")
PORT_START("RANK.7")
PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<22 | 1<<0, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x60) PORT_NAME("Sensor A7")
@ -672,6 +684,8 @@ static INPUT_PORTS_START( sensorboard )
PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<22 | 1<<7, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x67) PORT_NAME("Sensor H7")
PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<22 | 1<<8, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x68) PORT_NAME("Sensor I7")
PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<22 | 1<<9, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x69) PORT_NAME("Sensor J7")
PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<22 | 1<<10, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x6a) PORT_NAME("Sensor K7")
PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<22 | 1<<11, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x6b) PORT_NAME("Sensor L7")
PORT_START("RANK.8")
PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<23 | 1<<0, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x70) PORT_NAME("Sensor A8")
@ -684,6 +698,8 @@ static INPUT_PORTS_START( sensorboard )
PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<23 | 1<<7, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x77) PORT_NAME("Sensor H8")
PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<23 | 1<<8, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x78) PORT_NAME("Sensor I8")
PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<23 | 1<<9, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x79) PORT_NAME("Sensor J8")
PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<23 | 1<<10, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x7a) PORT_NAME("Sensor K8")
PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<23 | 1<<11, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x7b) PORT_NAME("Sensor L8")
PORT_START("RANK.9")
PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<24 | 1<<0, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x80) PORT_NAME("Sensor A9")
@ -696,6 +712,8 @@ static INPUT_PORTS_START( sensorboard )
PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<24 | 1<<7, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x87) PORT_NAME("Sensor H9")
PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<24 | 1<<8, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x88) PORT_NAME("Sensor I9")
PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<24 | 1<<9, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x89) PORT_NAME("Sensor J9")
PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<24 | 1<<10, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x8a) PORT_NAME("Sensor K9")
PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<24 | 1<<11, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x8b) PORT_NAME("Sensor L9")
PORT_START("RANK.10")
PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<25 | 1<<0, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x90) PORT_NAME("Sensor A10")
@ -708,6 +726,8 @@ static INPUT_PORTS_START( sensorboard )
PORT_BIT(0x0080, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<25 | 1<<7, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x97) PORT_NAME("Sensor H10")
PORT_BIT(0x0100, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<25 | 1<<8, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x98) PORT_NAME("Sensor I10")
PORT_BIT(0x0200, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<25 | 1<<9, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x99) PORT_NAME("Sensor J10")
PORT_BIT(0x0400, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<25 | 1<<10, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x9a) PORT_NAME("Sensor K10")
PORT_BIT(0x0800, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("BS_CHECK", 1<<25 | 1<<11, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, sensor, 0x9b) PORT_NAME("Sensor L10")
PORT_START("SPAWN")
PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CONDITION("SS_CHECK", 1<<0, EQUALS, 0) PORT_CHANGED_MEMBER(DEVICE_SELF, sensorboard_device, ui_spawn, 1) PORT_NAME("Spawn Piece 1")

View File

@ -26,7 +26,7 @@ public:
// configuration helpers
sensorboard_device &set_type(sb_type type); // sensor type
sensorboard_device &set_size(u8 width, u8 height) { m_width = width; m_height = height; return *this; } // board dimensions, max 10 * 10
sensorboard_device &set_size(u8 width, u8 height) { m_width = width; m_height = height; return *this; } // board dimensions, max 12 * 10
sensorboard_device &set_spawnpoints(u8 i) { m_maxspawn = i; m_maxid = i; return *this; } // number of piece spawnpoints, max 16
sensorboard_device &set_max_id(u8 i) { m_maxid = i; return *this; } // maximum piece id (if larger than set_spawnpoints)
sensorboard_device &set_delay(attotime delay) { m_sensordelay = delay; return *this; } // delay when activating a sensor (like PORT_IMPULSE), set to attotime::never to disable

View File

@ -1,5 +1,5 @@
// license:BSD-3-Clause
// copyright-holders:hap
// copyright-holders:hap,Sandro Ronco
/******************************************************************************
Fidelity Phantom (model 6100)
@ -17,19 +17,19 @@ Hardware notes:
- piezo speaker, LEDs, 8*8 chessboard buttons
- PCB label 510.1128A01
TODO:
- everything, this is a skeleton driver
******************************************************************************/
#include "emu.h"
#include "cpu/m6502/r65c02.h"
#include "machine/sensorboard.h"
#include "machine/timer.h"
#include "sound/dac.h"
#include "sound/volt_reg.h"
#include "video/pwm.h"
#include "speaker.h"
// internal artwork
//#include "fidel_phantom.lh" // clickable
#include "fidel_phantom.lh" // clickable
namespace {
@ -41,13 +41,17 @@ public:
driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_rombank(*this, "rombank"),
m_dac(*this, "dac")
m_dac(*this, "dac"),
m_board(*this, "board"),
m_display(*this, "display"),
m_input(*this, "IN.0")
{ }
void fphantom(machine_config &config);
void init_fphantom();
protected:
virtual void machine_start() override;
virtual void machine_reset() override;
private:
@ -55,12 +59,74 @@ private:
required_device<cpu_device> m_maincpu;
required_memory_bank m_rombank;
required_device<dac_bit_interface> m_dac;
required_device<sensorboard_device> m_board;
required_device<pwm_display_device> m_display;
required_ioport m_input;
void main_map(address_map &map);
TIMER_DEVICE_CALLBACK_MEMBER(motors_timer);
DECLARE_WRITE8_MEMBER(mux_w);
DECLARE_WRITE8_MEMBER(lcd_w);
DECLARE_WRITE8_MEMBER(lcd_mask_w);
DECLARE_WRITE8_MEMBER(motors_w);
DECLARE_WRITE8_MEMBER(led_w);
DECLARE_WRITE8_MEMBER(rombank_w);
DECLARE_READ8_MEMBER(input_r);
DECLARE_READ8_MEMBER(motors_r);
DECLARE_READ8_MEMBER(irq_ack_r);
DECLARE_READ8_MEMBER(hmotor_ff_clear_r);
DECLARE_READ8_MEMBER(vmotor_ff_clear_r);
void update_pieces_position(int state);
uint8_t m_mux;
uint8_t m_lcd_mask;
uint32_t m_lcd_data;
uint8_t m_motors_ctrl;
uint8_t m_hmotor_pos;
uint8_t m_vmotor_pos;
bool m_vmotor_sensor0_ff;
bool m_vmotor_sensor1_ff;
bool m_hmotor_sensor0_ff;
bool m_hmotor_sensor1_ff;
int m_piece;
bool m_piece_collision;
uint8_t m_pieces_map[0x40][0x40];
};
void phantom_state::machine_start()
{
save_item(NAME(m_mux));
save_item(NAME(m_lcd_mask));
save_item(NAME(m_lcd_data));
save_item(NAME(m_motors_ctrl));
save_item(NAME(m_hmotor_pos));
save_item(NAME(m_vmotor_pos));
save_item(NAME(m_vmotor_sensor0_ff));
save_item(NAME(m_vmotor_sensor1_ff));
save_item(NAME(m_hmotor_sensor0_ff));
save_item(NAME(m_hmotor_sensor1_ff));
save_item(NAME(m_piece));
save_item(NAME(m_piece_collision));
save_item(NAME(m_pieces_map));
}
void phantom_state::machine_reset()
{
m_mux = 0;
m_lcd_mask = 0;
m_lcd_data = 0;
m_motors_ctrl = 0;
m_hmotor_pos = 0xff;
m_vmotor_pos = 0xff;
m_vmotor_sensor0_ff = false;
m_vmotor_sensor1_ff = false;
m_hmotor_sensor0_ff = false;
m_hmotor_sensor1_ff = false;
m_piece = 0;
m_piece_collision = false;
memset(m_pieces_map, 0, sizeof(m_pieces_map));
m_rombank->set_entry(0);
}
@ -70,13 +136,187 @@ void phantom_state::init_fphantom()
}
TIMER_DEVICE_CALLBACK_MEMBER(phantom_state::motors_timer)
{
if (m_motors_ctrl & 0x03) m_vmotor_sensor0_ff = true;
if (m_motors_ctrl & 0x02) m_vmotor_sensor1_ff = true;
if (m_motors_ctrl & 0x0c) m_hmotor_sensor0_ff = true;
if (m_motors_ctrl & 0x04) m_hmotor_sensor1_ff = true;
if ((m_motors_ctrl & 0x01) && m_vmotor_pos > 0x00) m_vmotor_pos--;
if ((m_motors_ctrl & 0x02) && m_vmotor_pos < 0xff) m_vmotor_pos++;
if ((m_motors_ctrl & 0x04) && m_hmotor_pos > 0x00) m_hmotor_pos--;
if ((m_motors_ctrl & 0x08) && m_hmotor_pos < 0xff) m_hmotor_pos++;
}
void phantom_state::update_pieces_position(int state)
{
// convert motors position into board coordinates
int x = m_hmotor_pos / 16 - 2;
int y = m_vmotor_pos / 16;
if (x < 0)
x += 12;
// check if the magnet is in the center of a square
bool valid_pos = ((m_hmotor_pos & 0x0f) == 0x03 || (m_hmotor_pos & 0x0f) == 0x07) && ((m_vmotor_pos & 0x0f) == 0x09 || (m_vmotor_pos & 0x0f) == 0x0d);
if (state)
{
if (m_piece_collision)
m_piece_collision = valid_pos = false;
if (valid_pos)
{
m_piece = m_board->read_piece(x, y);
m_board->write_piece(x, y, 0);
}
else
m_piece = m_pieces_map[m_vmotor_pos / 4][m_hmotor_pos / 4];
m_pieces_map[m_vmotor_pos / 4][m_hmotor_pos / 4] = 0;
}
else
{
// check for pieces collisions
if (valid_pos && m_board->read_piece(x, y) != 0)
{
valid_pos = false;
m_piece_collision = true;
}
if (valid_pos)
m_board->write_piece(x, y, m_piece);
m_pieces_map[m_vmotor_pos / 4][m_hmotor_pos / 4] = m_piece;
m_piece = 0;
}
m_board->refresh();
}
/******************************************************************************
I/O
******************************************************************************/
//..
WRITE8_MEMBER(phantom_state::mux_w)
{
uint8_t mask = 1 << offset;
m_mux = (m_mux & ~mask) | ((data & 0x02) ? mask : 0);
}
WRITE8_MEMBER(phantom_state::lcd_mask_w)
{
m_lcd_mask = (data & 0x02) ? 0x00 : 0xff;
}
WRITE8_MEMBER(phantom_state::led_w)
{
m_display->matrix_partial(0, 2, 1, BIT(~data, 7) << m_mux);
}
WRITE8_MEMBER(phantom_state::rombank_w)
{
m_rombank->set_entry(data & 1);
}
WRITE8_MEMBER(phantom_state::motors_w)
{
// bit 0: vertical motor down
// bit 1: vertical motor up
// bit 2: horizontal motor left
// bit 3: horizontal motor right
// bit 4: electromagnet
// bit 5: speaker
if ((m_motors_ctrl ^ data) & 0x10)
update_pieces_position(BIT(data, 4));
m_dac->write(BIT(data, 5));
m_motors_ctrl = data;
}
WRITE8_MEMBER(phantom_state::lcd_w)
{
data ^= m_lcd_mask;
u32 mask = bitswap<8>(1 << offset,3,7,6,0,1,2,4,5);
for (int i = 0; i < 4; i++)
{
m_lcd_data = (m_lcd_data & ~mask) | (BIT(data, i * 2) ? mask : 0);
mask <<= 8;
m_display->write_row(i+2, m_lcd_data >> (8*i) & 0xff);
}
m_display->update();
}
READ8_MEMBER(phantom_state::input_r)
{
uint8_t data = 0xff;
if (m_mux == 8)
{
if (BIT(m_input->read(), offset * 2 + 1)) data &= ~0x40;
if (BIT(m_input->read(), offset * 2 + 0)) data &= ~0x80;
}
else if (offset < 4)
{
if (BIT(m_board->read_file(offset * 2 + 1), m_mux)) data &= ~0x40;
if (BIT(m_board->read_file(offset * 2 + 0), m_mux)) data &= ~0x80;
}
else
{
if (BIT(m_board->read_file( 8 + (offset & 1)), m_mux)) data &= ~0x40; // black captured pieces
if (BIT(m_board->read_file(11 - (offset & 1)), m_mux)) data &= ~0x80; // white captured pieces
}
return data;
}
READ8_MEMBER(phantom_state::motors_r)
{
uint8_t data = 0xff;
switch (offset)
{
case 0:
if (!m_vmotor_sensor1_ff) data &= ~0x40;
if (!m_hmotor_sensor1_ff) data &= ~0x80;
break;
case 1:
if (!m_vmotor_sensor0_ff) data &= ~0x40;
if (!m_hmotor_sensor0_ff) data &= ~0x80;
break;
}
return data;
}
READ8_MEMBER(phantom_state::irq_ack_r)
{
if (!machine().side_effects_disabled())
m_maincpu->set_input_line(R65C02_IRQ_LINE, CLEAR_LINE);
return 0;
}
READ8_MEMBER(phantom_state::hmotor_ff_clear_r)
{
if (!machine().side_effects_disabled())
m_hmotor_sensor1_ff = m_hmotor_sensor0_ff = false;
return 0;
}
READ8_MEMBER(phantom_state::vmotor_ff_clear_r)
{
if (!machine().side_effects_disabled())
m_vmotor_sensor1_ff = m_vmotor_sensor0_ff = false;
return 0;
}
/******************************************************************************
@ -86,6 +326,17 @@ void phantom_state::init_fphantom()
void phantom_state::main_map(address_map &map)
{
map(0x0000, 0x1fff).ram();
map(0x2000, 0x2003).w(FUNC(phantom_state::mux_w));
map(0x2004, 0x2004).w(FUNC(phantom_state::led_w));
map(0x2006, 0x2006).w(FUNC(phantom_state::rombank_w));
map(0x20ff, 0x20ff).w(FUNC(phantom_state::lcd_mask_w));
map(0x2100, 0x2107).w(FUNC(phantom_state::lcd_w)).nopr();
map(0x2200, 0x2200).w(FUNC(phantom_state::motors_w));
map(0x2400, 0x2405).r(FUNC(phantom_state::input_r));
map(0x2406, 0x2407).r(FUNC(phantom_state::motors_r));
map(0x2500, 0x25ff).r(FUNC(phantom_state::hmotor_ff_clear_r));
map(0x2600, 0x2600).r(FUNC(phantom_state::vmotor_ff_clear_r));
map(0x2700, 0x2700).r(FUNC(phantom_state::irq_ack_r));
map(0x4000, 0x7fff).bankr("rombank");
map(0x8000, 0xffff).rom();
}
@ -97,6 +348,19 @@ void phantom_state::main_map(address_map &map)
******************************************************************************/
static INPUT_PORTS_START( fphantom )
PORT_START("IN.0")
PORT_BIT(0x001, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_A) PORT_NAME("Verify / Problem")
PORT_BIT(0x002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_B) PORT_NAME("Option / Time")
PORT_BIT(0x004, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_C) PORT_NAME("Level / New")
PORT_BIT(0x008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_F) PORT_NAME("Take Back / Replay")
PORT_BIT(0x010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_G) PORT_NAME("Hint / Info")
PORT_BIT(0x020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_H) PORT_NAME("Move / Alternate")
PORT_BIT(0x040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_T) PORT_NAME("Auto / Stop")
PORT_BIT(0x080, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_DEL) PORT_NAME("Clear")
PORT_BIT(0x100, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_S) PORT_NAME("Shift")
PORT_BIT(0x200, IP_ACTIVE_HIGH, IPT_UNUSED)
PORT_BIT(0x400, IP_ACTIVE_HIGH, IPT_UNUSED)
PORT_BIT(0x800, IP_ACTIVE_HIGH, IPT_UNUSED)
INPUT_PORTS_END
@ -109,10 +373,21 @@ void phantom_state::fphantom(machine_config &config)
{
/* basic machine hardware */
R65C02(config, m_maincpu, 4.9152_MHz_XTAL); // R65C02P4
m_maincpu->set_periodic_int(FUNC(phantom_state::irq0_line_hold), attotime::from_hz(600)); // guessed
m_maincpu->set_periodic_int(FUNC(phantom_state::irq0_line_assert), attotime::from_hz(600)); // guessed
m_maincpu->set_addrmap(AS_PROGRAM, &phantom_state::main_map);
//config.set_default_layout(layout_fidel_phantom);
SENSORBOARD(config, m_board).set_type(sensorboard_device::BUTTONS);
m_board->set_size(12, 8);
m_board->init_cb().set(m_board, FUNC(sensorboard_device::preset_chess));
m_board->set_delay(attotime::from_msec(100));
TIMER(config, "motors_timer").configure_periodic(FUNC(phantom_state::motors_timer), attotime::from_hz(120));
/* video hardware */
PWM_DISPLAY(config, m_display).set_size(2+4, 9);
m_display->set_segmask(0x3c, 0x7f);
config.set_default_layout(layout_fidel_phantom);
/* sound hardware */
SPEAKER(config, "speaker").front_center();
@ -143,4 +418,4 @@ ROM_END
******************************************************************************/
// YEAR NAME PARENT CMP MACHINE INPUT STATE INIT COMPANY, FULLNAME, FLAGS
CONS( 1988, fphantom, 0, 0, fphantom, fphantom, phantom_state, init_fphantom, "Fidelity Electronics", "Phantom Chess Challenger", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_CONTROLS | MACHINE_MECHANICAL | MACHINE_NOT_WORKING )
CONS( 1988, fphantom, 0, 0, fphantom, fphantom, phantom_state, init_fphantom, "Fidelity Electronics", "Phantom Chess Challenger", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_CONTROLS | MACHINE_MECHANICAL )

View File

@ -0,0 +1,669 @@
<?xml version="1.0"?>
<mamelayout version="2">
<!-- define elements -->
<element name="black"><rect><color red="0.17" green="0.15" blue="0.15" /></rect></element>
<element name="redb"><rect><color red="0.81" green="0.3" blue="0.29" /></rect></element>
<element name="disk_black"><disk><color red="0.17" green="0.15" blue="0.15" /></disk></element>
<element name="disk_white"><disk><color red="0.99" green="0.99" blue="0.99" /></disk></element>
<element name="lcd_bg"><rect><color red="0.54" green="0.57" blue="0.58" /></rect></element>
<element name="golden_mask"><rect><color red="0.843" green="0.678" blue="0.482" /></rect></element>
<element name="digit" defstate="0">
<led7seg><color red="0.2" green="0.16" blue="0.16" /></led7seg>
</element>
<element name="ldot" defstate="0">
<rect state="1"><color red="0.2" green="0.16" blue="0.16" /></rect>
<rect state="0"><color red="0.49412" green="0.51765" blue="0.51765" /></rect>
</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.1" green="0.01" blue="0.015" /></disk>
</element>
<element name="hlr" defstate="0">
<text string=" ">
<bounds x="0" y="0" width="8" height="6" />
<color red="0.0" green="0.0" blue="0.0" />
</text>
<disk state="1">
<bounds x="0.5" y="0.5" width="7" height="5" />
<color red="1.0" green="1.0" blue="1.0" />
</disk>
</element>
<element name="text_1">
<rect><color red="0.209" green="0.209" blue="0.201" /></rect>
<text string="1"><color red="0.843" green="0.678" blue="0.482" /></text>
</element>
<element name="text_2">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="2"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_3">
<rect><color red="0.209" green="0.209" blue="0.201" /></rect>
<text string="3"><color red="0.843" green="0.678" blue="0.482" /></text>
</element>
<element name="text_4">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="4"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_5">
<rect><color red="0.209" green="0.209" blue="0.201" /></rect>
<text string="5"><color red="0.843" green="0.678" blue="0.482" /></text>
</element>
<element name="text_6">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="6"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_7">
<rect><color red="0.209" green="0.209" blue="0.201" /></rect>
<text string="7"><color red="0.843" green="0.678" blue="0.482" /></text>
</element>
<element name="text_8">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="8"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_a">
<rect><color red="0.209" green="0.209" blue="0.201" /></rect>
<text string="A"><color red="0.843" green="0.678" blue="0.482" /></text>
</element>
<element name="text_b">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="B"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_c">
<rect><color red="0.209" green="0.209" blue="0.201" /></rect>
<text string="C"><color red="0.843" green="0.678" blue="0.482" /></text>
</element>
<element name="text_d">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="D"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_e">
<rect><color red="0.209" green="0.209" blue="0.201" /></rect>
<text string="E"><color red="0.843" green="0.678" blue="0.482" /></text>
</element>
<element name="text_f">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="F"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_g">
<rect><color red="0.209" green="0.209" blue="0.201" /></rect>
<text string="G"><color red="0.843" green="0.678" blue="0.482" /></text>
</element>
<element name="text_h">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="H"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_white">
<rect><color red="0.17" green="0.15" blue="0.15" /></rect>
<text string="WHITE"><color red="0.99" green="0.99" blue="0.99" /></text>
</element>
<element name="text_black">
<rect><color red="0.17" green="0.15" blue="0.15" /></rect>
<text string="BLACK"><color red="0.99" green="0.99" blue="0.99" /></text>
</element>
<element name="text_u1">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="VERIFY"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_u2">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="OPTION"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_u3">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="LEVEL"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_u4">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="TAKE BACK"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_u5">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="HINT"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_u6">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="MOVE"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_u7">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="AUTO"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_u8">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="CLEAR"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_shift">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="SHIFT"><color red="0.81" green="0.3" blue="0.29" /></text>
</element>
<element name="text_s1">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="PROBLEM"><color red="0.81" green="0.3" blue="0.29" /></text>
</element>
<element name="text_s2">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="TIME"><color red="0.81" green="0.3" blue="0.29" /></text>
</element>
<element name="text_s3">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="NEW"><color red="0.81" green="0.3" blue="0.29" /></text>
</element>
<element name="text_s4">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="REPLAY"><color red="0.81" green="0.3" blue="0.29" /></text>
</element>
<element name="text_s5">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="INFO"><color red="0.81" green="0.3" blue="0.29" /></text>
</element>
<element name="text_s6">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="ALTERNATE"><color red="0.81" green="0.3" blue="0.29" /></text>
</element>
<element name="text_s7">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="STOP"><color red="0.81" green="0.3" blue="0.29" /></text>
</element>
<element name="text_s8">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="CLEAR"><color red="0.81" green="0.3" blue="0.29" /></text>
</element>
<element name="text_p1"> <image file="chess/wk.png"/></element>
<element name="text_p2"> <image file="chess/wq.png"/></element>
<element name="text_p3"> <image file="chess/wr.png"/></element>
<element name="text_p4"> <image file="chess/wb.png"/></element>
<element name="text_p5"> <image file="chess/wn.png"/></element>
<element name="text_p6"> <image file="chess/wp.png"/></element>
<!-- sb board -->
<element name="cblack"><rect><color red="0.209" green="0.209" blue="0.201" /></rect></element>
<element name="cwhite"><rect><color red="0.843" green="0.678" blue="0.482" /></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="-20.5" y="0" width="121.0" 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>
<!-- chessboard coords -->
<element ref="text_8"><bounds x="0" y="4.2" width="1.8" height="1.8" /></element>
<element ref="text_7"><bounds x="0" y="14.2" width="1.8" height="1.8" /></element>
<element ref="text_6"><bounds x="0" y="24.2" width="1.8" height="1.8" /></element>
<element ref="text_5"><bounds x="0" y="34.2" width="1.8" height="1.8" /></element>
<element ref="text_4"><bounds x="0" y="44.2" width="1.8" height="1.8" /></element>
<element ref="text_3"><bounds x="0" y="54.2" width="1.8" height="1.8" /></element>
<element ref="text_2"><bounds x="0" y="64.2" width="1.8" height="1.8" /></element>
<element ref="text_1"><bounds x="0" y="74.2" width="1.8" height="1.8" /></element>
<element ref="text_a"><bounds x="4.2" y="78.1" width="1.8" height="1.8" /></element>
<element ref="text_b"><bounds x="14.2" y="78.1" width="1.8" height="1.8" /></element>
<element ref="text_c"><bounds x="24.2" y="78.1" width="1.8" height="1.8" /></element>
<element ref="text_d"><bounds x="34.2" y="78.1" width="1.8" height="1.8" /></element>
<element ref="text_e"><bounds x="44.2" y="78.1" width="1.8" height="1.8" /></element>
<element ref="text_f"><bounds x="54.2" y="78.1" width="1.8" height="1.8" /></element>
<element ref="text_g"><bounds x="64.2" y="78.1" width="1.8" height="1.8" /></element>
<element ref="text_h"><bounds x="74.2" y="78.1" width="1.8" height="1.8" /></element>
<element ref="text_p6"><bounds x="-16.75" y="74" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="-6.75" y="74" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="-16.75" y="64" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="-6.75" y="64" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="-16.75" y="54" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="-6.75" y="54" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="-16.75" y="44" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="-6.75" y="44" width="2.5" height="2.5" /></element>
<element ref="text_p5"><bounds x="-16.75" y="34" width="2.5" height="2.5" /></element>
<element ref="text_p5"><bounds x="-6.75" y="34" width="2.5" height="2.5" /></element>
<element ref="text_p4"><bounds x="-16.75" y="24" width="2.5" height="2.5" /></element>
<element ref="text_p4"><bounds x="-6.75" y="24" width="2.5" height="2.5" /></element>
<element ref="text_p3"><bounds x="-16.75" y="14" width="2.5" height="2.5" /></element>
<element ref="text_p3"><bounds x="-6.75" y="14" width="2.5" height="2.5" /></element>
<element ref="text_p2"><bounds x="-16.75" y="4" width="2.5" height="2.5" /></element>
<element ref="text_p1"><bounds x="-6.75" y="4" width="2.5" height="2.5" /></element>
<element ref="text_white"><bounds x="-13" y="78.5" width="5" height="1.5" /></element>
<element ref="text_p6"><bounds x="94.25" y="74" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="84.25" y="74" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="94.25" y="64" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="84.25" y="64" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="94.25" y="54" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="84.25" y="54" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="94.25" y="44" width="2.5" height="2.5" /></element>
<element ref="text_p6"><bounds x="84.25" y="44" width="2.5" height="2.5" /></element>
<element ref="text_p5"><bounds x="94.25" y="34" width="2.5" height="2.5" /></element>
<element ref="text_p5"><bounds x="84.25" y="34" width="2.5" height="2.5" /></element>
<element ref="text_p4"><bounds x="94.25" y="24" width="2.5" height="2.5" /></element>
<element ref="text_p4"><bounds x="84.25" y="24" width="2.5" height="2.5" /></element>
<element ref="text_p3"><bounds x="94.25" y="14" width="2.5" height="2.5" /></element>
<element ref="text_p3"><bounds x="84.25" y="14" width="2.5" height="2.5" /></element>
<element ref="text_p2"><bounds x="94.25" y="4" width="2.5" height="2.5" /></element>
<element ref="text_p1"><bounds x="84.25" y="4" width="2.5" height="2.5" /></element>
<element ref="text_black"><bounds x="88" y="78.5" width="5" height="1.5" /></element>
<element ref="golden_mask" blend="multiply"><bounds x="80.5" y="0" width="20" height="80" /></element>
<element ref="golden_mask" blend="multiply"><bounds x="-20.5" y="0" width="20" height="80" /></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 ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x400"><bounds x="-20.5" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x800"><bounds x="-10.5" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x100"><bounds x="80.5" y="~y~" width="10" height="10" /><color alpha="0.04" /></element>
<element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x200"><bounds x="90.5" 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>
<element name="piece_k~i~" ref="piece"><bounds x="-20.5" y="~y~" width="10" height="10" /></element>
<element name="piece_l~i~" ref="piece"><bounds x="-10.5" y="~y~" width="10" height="10" /></element>
<element name="piece_i~i~" ref="piece"><bounds x="80.5" y="~y~" width="10" height="10" /></element>
<element name="piece_j~i~" ref="piece"><bounds x="90.5" 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.843" green="0.678" blue="0.482" /></text></element>
<element name="text_uit2"><text string="INTERFACE"><color red="0.843" green="0.678" blue="0.482" /></text></element>
<element name="text_uib1"><text string="BOARD:"><color red="0.843" green="0.678" blue="0.482" /></text></element>
<element name="text_uib2">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string="RESET"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_uib3">
<rect><color red="0.843" green="0.678" blue="0.482" /></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.843" green="0.678" blue="0.482" /></text></element>
<element name="text_uih1"><text string="HAND:"><color red="0.843" green="0.678" blue="0.482" /></text></element>
<element name="text_uih2">
<rect><color red="0.843" green="0.678" blue="0.482" /></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.843" green="0.678" blue="0.482" /></text></element>
<element name="text_uiu2a">
<rect><color red="0.843" green="0.678" blue="0.482" /></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.843" green="0.678" blue="0.482" /></rect>
<text string=" &lt; "><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_uiu2c">
<rect><color red="0.843" green="0.678" blue="0.482" /></rect>
<text string=" &gt;"><color red="0.01" green="0.01" blue="0.01" /></text>
</element>
<element name="text_uiu2d">
<rect><color red="0.843" green="0.678" blue="0.482" /></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.843" green="0.678" blue="0.482" />
</simplecounter>
</element>
<element name="text_uiu3b"><text string="/"><color red="0.843" green="0.678" blue="0.482" /></text></element>
<element name="text_uiu3c" defstate="0">
<simplecounter maxstate="999" digits="1" align="1">
<color red="0.843" green="0.678" blue="0.482" />
</simplecounter>
</element>
<group name="sb_ui">
<bounds x="0" y="0" width="10" height="80" />
<element ref="cwhite"><bounds x="0" y="0" width="10" height="1" /></element>
<element ref="cwhite"><bounds x="0" y="7" width="10" height="1" /></element>
<element ref="cwhite"><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="cwhite"><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>
<group name="panel">
<bounds x="0" y="0" width="122" height="17" />
<element ref="black"><bounds x="0" y="0" width="122" height="17" /></element>
<element ref="redb"><bounds x="51" y="4" width="6" height="4.5" /></element>
<element ref="black"><bounds x="51.5" y="4.5" width="5" height="3.5" /></element>
<element name="0.8" ref="led"><bounds x="53.2" y="5.5" width="1.5" height="1.5" /></element>
<element ref="cwhite"><bounds x="51" y="9.5" width="6" height="4.5" /></element>
<element ref="text_shift"><bounds x="51.5" y="10.8" width="5" height="2" /></element>
<element ref="hlr" inputtag="IN.0" inputmask="0x100"><bounds x="51" y="9.5" width="6" height="4.5" /><color alpha="0.3" /></element>
<element ref="cwhite"><bounds x="58" y="4" width="6" height="4.5" /></element>
<element ref="cwhite"><bounds x="58" y="9.5" width="6" height="4.5" /></element>
<element ref="text_s1"><bounds x="58.5" y="4.8" width="5" height="2" /></element>
<element ref="text_u1"><bounds x="58.5" y="11.3" width="5" height="2" /></element>
<element ref="disk_black"><bounds x="59.5" y="7.5" width="3" height="3" /></element>
<element ref="disk_white"><bounds x="60" y="8" width="2" height="2" /></element>
<element ref="hlr" inputtag="IN.0" inputmask="0x01"><bounds x="58.5" y="5" width="5" height="8" /><color alpha="0.3" /></element>
<element ref="cwhite"><bounds x="65" y="4" width="6" height="4.5" /></element>
<element ref="cwhite"><bounds x="65" y="9.5" width="6" height="4.5" /></element>
<element ref="text_s2"><bounds x="65.5" y="4.8" width="5" height="2" /></element>
<element ref="text_u2"><bounds x="65.5" y="11.3" width="5" height="2" /></element>
<element ref="disk_black"><bounds x="66.5" y="7.5" width="3" height="3" /></element>
<element ref="disk_white"><bounds x="67" y="8" width="2" height="2" /></element>
<element ref="hlr" inputtag="IN.0" inputmask="0x02"><bounds x="65.5" y="5" width="5" height="8" /><color alpha="0.3" /></element>
<element ref="cwhite"><bounds x="72" y="4" width="6" height="4.5" /></element>
<element ref="cwhite"><bounds x="72" y="9.5" width="6" height="4.5" /></element>
<element ref="text_s3"><bounds x="72.5" y="4.8" width="5" height="2" /></element>
<element ref="text_u3"><bounds x="72.5" y="11.3" width="5" height="2" /></element>
<element ref="disk_black"><bounds x="73.5" y="7.5" width="3" height="3" /></element>
<element ref="disk_white"><bounds x="74" y="8" width="2" height="2" /></element>
<element ref="hlr" inputtag="IN.0" inputmask="0x04"><bounds x="72.5" y="5" width="5" height="8" /><color alpha="0.3" /></element>
<element ref="cwhite"><bounds x="79" y="4" width="6" height="4.5" /></element>
<element ref="cwhite"><bounds x="79" y="9.5" width="6" height="4.5" /></element>
<element ref="text_s4"><bounds x="79.5" y="4.8" width="5" height="2" /></element>
<element ref="text_u4"><bounds x="79.5" y="11.3" width="5" height="2" /></element>
<element ref="disk_black"><bounds x="80.5" y="7.5" width="3" height="3" /></element>
<element ref="disk_white"><bounds x="81" y="8" width="2" height="2" /></element>
<element ref="hlr" inputtag="IN.0" inputmask="0x08"><bounds x="79.5" y="5" width="5" height="8" /><color alpha="0.3" /></element>
<element ref="cwhite"><bounds x="86" y="4" width="6" height="4.5" /></element>
<element ref="cwhite"><bounds x="86" y="9.5" width="6" height="4.5" /></element>
<element ref="text_s5"><bounds x="86.5" y="4.8" width="5" height="2" /></element>
<element ref="text_u5"><bounds x="86.5" y="11.3" width="5" height="2" /></element>
<element ref="disk_black"><bounds x="87.5" y="7.5" width="3" height="3" /></element>
<element ref="disk_white"><bounds x="88" y="8" width="2" height="2" /></element>
<element ref="hlr" inputtag="IN.0" inputmask="0x10"><bounds x="86.5" y="5" width="5" height="8" /><color alpha="0.3" /></element>
<element ref="cwhite"><bounds x="93" y="4" width="6" height="4.5" /></element>
<element ref="cwhite"><bounds x="93" y="9.5" width="6" height="4.5" /></element>
<element ref="text_s6"><bounds x="93.5" y="4.8" width="5" height="2" /></element>
<element ref="text_u6"><bounds x="93.5" y="11.3" width="5" height="2" /></element>
<element ref="disk_black"><bounds x="94.5" y="7.5" width="3" height="3" /></element>
<element ref="disk_white"><bounds x="95" y="8" width="2" height="2" /></element>
<element ref="hlr" inputtag="IN.0" inputmask="0x20"><bounds x="93.5" y="5" width="5" height="8" /><color alpha="0.3" /></element>
<element ref="cwhite"><bounds x="100" y="4" width="6" height="4.5" /></element>
<element ref="cwhite"><bounds x="100" y="9.5" width="6" height="4.5" /></element>
<element ref="text_s7"><bounds x="100.5" y="4.8" width="5" height="2" /></element>
<element ref="text_u7"><bounds x="100.5" y="11.3" width="5" height="2" /></element>
<element ref="disk_black"><bounds x="101.5" y="7.5" width="3" height="3" /></element>
<element ref="disk_white"><bounds x="102" y="8" width="2" height="2" /></element>
<element ref="hlr" inputtag="IN.0" inputmask="0x40"><bounds x="100.5" y="5" width="5" height="8" /><color alpha="0.3" /></element>
<element ref="cwhite"><bounds x="107" y="4" width="6" height="4.5" /></element>
<element ref="cwhite"><bounds x="107" y="9.5" width="6" height="4.5" /></element>
<element ref="text_s8"><bounds x="107.5" y="4.8" width="5" height="2" /></element>
<element ref="text_u8"><bounds x="107.5" y="11.3" width="5" height="2" /></element>
<element ref="disk_black"><bounds x="108.5" y="7.5" width="3" height="3" /></element>
<element ref="disk_white"><bounds x="109" y="8" width="2" height="2" /></element>
<element ref="hlr" inputtag="IN.0" inputmask="0x80"><bounds x="107.5" y="5" width="5" height="8" /><color alpha="0.3" /></element>
<element ref="cwhite"><bounds x="28" y="5" width="18.2" height="0.2" /></element>
<element ref="cwhite"><bounds x="28" y="8.75" width="18.2" height="0.2" /></element>
<element ref="cwhite"><bounds x="28" y="12.5" width="18.2" height="0.2" /></element>
<element ref="cwhite"><bounds x="28" y="5" width="0.2" height="7.7" /></element>
<element ref="cwhite"><bounds x="37" y="5" width="0.2" height="7.7" /></element>
<element ref="cwhite"><bounds x="40" y="5" width="0.2" height="7.7" /></element>
<element ref="cwhite"><bounds x="43" y="5" width="0.2" height="7.7" /></element>
<element ref="cwhite"><bounds x="46" y="5" width="0.2" height="7.7" /></element>
<element ref="text_black"><bounds x="29" y="6" width="5" height="1.5" /></element>
<element ref="text_white"><bounds x="29" y="10" width="5" height="1.5" /></element>
<element name="0.0" ref="led"><bounds x="35" y="6" width="1.5" height="1.5" /></element>
<element name="0.1" ref="led"><bounds x="35" y="10" width="1.5" height="1.5" /></element>
<element ref="text_p1" ><bounds x="37.5" y="5.5" width="2.3" height="2.5" /></element>
<element name="0.2" ref="led" blend="multiply"><bounds x="37.5" y="5.5" width="2.3" height="2.5" /></element>
<element ref="text_p2" ><bounds x="40.5" y="5.5" width="2.3" height="2.5" /></element>
<element name="0.3" ref="led" blend="multiply"><bounds x="40.5" y="5.5" width="2.3" height="2.5" /></element>
<element ref="text_p3" ><bounds x="43.5" y="5.5" width="2.3" height="2.5" /></element>
<element name="0.4" ref="led" blend="multiply"><bounds x="43.5" y="5.5" width="2.3" height="2.5" /></element>
<element ref="text_p4" ><bounds x="37.5" y="9.5" width="2.3" height="2.5" /></element>
<element name="0.5" ref="led" blend="multiply"><bounds x="37.5" y="9.5" width="2.3" height="2.5" /></element>
<element ref="text_p5" ><bounds x="40.5" y="9.5" width="2.3" height="2.5" /></element>
<element name="0.6" ref="led" blend="multiply"><bounds x="40.5" y="9.5" width="2.3" height="2.5" /></element>
<element ref="text_p6" ><bounds x="43.5" y="9.5" width="2.3" height="2.5" /></element>
<element name="0.7" ref="led" blend="multiply"><bounds x="43.5" y="9.5" width="2.3" height="2.5" /></element>
<!-- lcd panel -->
<element ref="cwhite"><bounds x="3.5" y="5" width="20.25" height="7.5" /></element>
<element ref="black"><bounds x="3.725" y="5.225" width="19.8" height="7.05" /></element>
<element ref="lcd_bg"><bounds x="4.625" y="6.125" width="18" height="5.25" /></element>
<element name="digit2" ref="digit"><bounds x="5.375" y="6.5" width="3" height="4.5" /></element>
<element name="digit3" ref="digit"><bounds x="9.875" y="6.5" width="3" height="4.5" /></element>
<element name="digit4" ref="digit"><bounds x="14.375" y="6.5" width="3" height="4.5" /></element>
<element name="digit5" ref="digit"><bounds x="18.875" y="6.5" width="3" height="4.5" /></element>
<element name="2.7" ref="ldot"><bounds x="8.75" y="10.625" width="0.45" height="0.45" /></element>
<element name="3.7" ref="ldot"><bounds x="13.25" y="10.625" width="0.45" height="0.45" /></element>
<element name="4.7" ref="ldot"><bounds x="17.75" y="10.625" width="0.45" height="0.45" /></element>
<element name="5.7" ref="ldot"><bounds x="13.5575" y="7.85" width="0.45" height="0.45" /></element>
<element name="5.7" ref="ldot"><bounds x="13.3925" y="9.2375" width="0.45" height="0.45" /></element>
</group>
<!-- build screen -->
<view name="Internal Layout">
<bounds left="-35" right="103" top="0" bottom="102.5" />
<element ref="cwhite"><bounds x="-21" y="2" width="122" height="83" /></element>
<element ref="black"><bounds x="-20.5" y="2.5" width="121" height="82" /></element>
<element ref="cwhite"><bounds x="-0.5" y="3" width="81" height="81" /></element>
<group ref="sb_board"><bounds x="-20.5" y="3.5" width="121" height="80" /></group>
<group ref="sb_ui"><bounds x="-33" y="3" width="10" height="80" /></group>
<group ref="panel"><bounds x="-21" y="85" width="122" height="17" /></group>
</view>
</mamelayout>