mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
New working machines
-------------------- Chesster Phantom [hap, Berger]
This commit is contained in:
parent
2504edaaa7
commit
80ce72877e
@ -1,5 +1,6 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:hap,Sandro Ronco
|
||||
// copyright-holders:hap, Sandro Ronco
|
||||
// thanks-to:Berger
|
||||
/******************************************************************************
|
||||
|
||||
Fidelity Phantom (model 6100)
|
||||
@ -10,12 +11,16 @@ the outside. After Fidelity was taken over by H+G, it was rereleased in 1990 as
|
||||
Mephisto Phantom. This is assumed to be identical.
|
||||
|
||||
Hardware notes:
|
||||
- R65C02P4, XTAL marked 4.91?200
|
||||
- PCB label 510.1128A01
|
||||
- R65C02P4, XTAL marked 4.915200
|
||||
- 2*32KB ROM 27C256-15, 8KB RAM MS6264L-10
|
||||
- LCD driver, display panel for digits
|
||||
- magnetized x/y motor under chessboard, chesspieces have magnet underneath
|
||||
- magnetized x/y DC motors under chessboard, chesspieces have magnet underneath
|
||||
- piezo speaker, LEDs, 8*8 chessboard buttons
|
||||
- PCB label 510.1128A01
|
||||
|
||||
Chesster Phantom is on similar base hardware, and adds the Chesster voice to it,
|
||||
using the same ROM as the original Chesster. It also has a motion sensor at the
|
||||
front and 2 leds to mimick eyes.
|
||||
|
||||
To play, wait until the motor is finished before making a move. At boot-up, the
|
||||
computer will do a self-test.
|
||||
@ -24,23 +29,30 @@ spawn block and place it at the designated box at the edge of the chessboard.
|
||||
|
||||
TODO:
|
||||
- sensorboard undo buffer goes out of control, probably not worth solving this issue
|
||||
- cphantom artwork should be green instead of beige
|
||||
- motor position in artwork?
|
||||
|
||||
******************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
|
||||
#include "cpu/m6502/r65c02.h"
|
||||
#include "machine/sensorboard.h"
|
||||
#include "machine/timer.h"
|
||||
#include "sound/dac.h"
|
||||
#include "video/pwm.h"
|
||||
|
||||
#include "speaker.h"
|
||||
|
||||
// internal artwork
|
||||
#include "fidel_cphantom.lh" // clickable
|
||||
#include "fidel_phantom.lh" // clickable
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// Phantom 6100 / shared
|
||||
|
||||
class phantom_state : public driver_device
|
||||
{
|
||||
public:
|
||||
@ -51,59 +63,67 @@ public:
|
||||
m_dac(*this, "dac"),
|
||||
m_board(*this, "board"),
|
||||
m_display(*this, "display"),
|
||||
m_input(*this, "IN.0"),
|
||||
m_inputs(*this, "IN.%u", 0),
|
||||
m_out_motor(*this, "motor.%u", 0U)
|
||||
{ }
|
||||
|
||||
void fphantom(machine_config &config);
|
||||
void init_fphantom();
|
||||
void phantom(machine_config &config);
|
||||
void init_phantom();
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
|
||||
private:
|
||||
// devices/pointers
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_memory_bank m_rombank;
|
||||
required_device<dac_bit_interface> m_dac;
|
||||
optional_device<dac_bit_interface> m_dac;
|
||||
required_device<sensorboard_device> m_board;
|
||||
required_device<pwm_display_device> m_display;
|
||||
required_ioport m_input;
|
||||
optional_ioport_array<2> m_inputs;
|
||||
output_finder<5> m_out_motor;
|
||||
|
||||
void main_map(address_map &map);
|
||||
// address maps
|
||||
virtual void main_map(address_map &map);
|
||||
|
||||
// I/O handlers
|
||||
void init_motors();
|
||||
void check_rotation();
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(motors_timer);
|
||||
void update_lcd();
|
||||
void control_w(offs_t offset, u8 data);
|
||||
void update_pieces_position(int state);
|
||||
|
||||
void update_lcd(u8 select);
|
||||
virtual void control_w(offs_t offset, u8 data);
|
||||
void lcd_w(offs_t offset, u8 data);
|
||||
void motors_w(u8 data);
|
||||
u8 input_r(offs_t offset);
|
||||
virtual u8 input_r(offs_t offset);
|
||||
u8 motors_r(offs_t offset);
|
||||
u8 irq_ack_r();
|
||||
u8 hmotor_ff_clear_r();
|
||||
u8 vmotor_ff_clear_r();
|
||||
void update_pieces_position(int state);
|
||||
|
||||
uint8_t m_select;
|
||||
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];
|
||||
u8 m_mux = 0;
|
||||
u8 m_select = 0;
|
||||
u32 m_lcd_data = 0;
|
||||
|
||||
u8 m_motors_ctrl;
|
||||
int m_hmotor_pos;
|
||||
int 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;
|
||||
u8 m_pieces_map[0x40][0x40];
|
||||
};
|
||||
|
||||
void phantom_state::machine_start()
|
||||
{
|
||||
m_out_motor.resolve();
|
||||
|
||||
// register for savestates
|
||||
save_item(NAME(m_mux));
|
||||
save_item(NAME(m_select));
|
||||
save_item(NAME(m_lcd_data));
|
||||
save_item(NAME(m_motors_ctrl));
|
||||
@ -120,25 +140,54 @@ void phantom_state::machine_start()
|
||||
|
||||
void phantom_state::machine_reset()
|
||||
{
|
||||
m_select = 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));
|
||||
|
||||
init_motors();
|
||||
m_rombank->set_entry(0);
|
||||
}
|
||||
|
||||
void phantom_state::init_fphantom()
|
||||
void phantom_state::init_phantom()
|
||||
{
|
||||
m_rombank->configure_entries(0, 2, memregion("rombank")->base(), 0x4000);
|
||||
int numbanks = memregion("rombank")->bytes() / 0x4000;
|
||||
m_rombank->configure_entries(0, numbanks, memregion("rombank")->base(), 0x4000);
|
||||
}
|
||||
|
||||
// Chesster Phantom
|
||||
|
||||
class chessterp_state : public phantom_state
|
||||
{
|
||||
public:
|
||||
chessterp_state(const machine_config &mconfig, device_type type, const char *tag) :
|
||||
phantom_state(mconfig, type, tag),
|
||||
m_eye_led(*this, "eye_led")
|
||||
{ }
|
||||
|
||||
void cphantom(machine_config &config);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
|
||||
private:
|
||||
output_finder<> m_eye_led;
|
||||
|
||||
virtual void main_map(address_map &map) override;
|
||||
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(nmi_timer);
|
||||
virtual void control_w(offs_t offset, u8 data) override;
|
||||
virtual u8 input_r(offs_t offset) override;
|
||||
|
||||
u8 m_select2 = 0;
|
||||
};
|
||||
|
||||
void chessterp_state::machine_start()
|
||||
{
|
||||
phantom_state::machine_start();
|
||||
|
||||
m_eye_led.resolve();
|
||||
save_item(NAME(m_select2));
|
||||
}
|
||||
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(chessterp_state::nmi_timer)
|
||||
{
|
||||
m_maincpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
|
||||
}
|
||||
|
||||
|
||||
@ -147,17 +196,45 @@ void phantom_state::init_fphantom()
|
||||
Motor Sim
|
||||
******************************************************************************/
|
||||
|
||||
void phantom_state::init_motors()
|
||||
{
|
||||
m_motors_ctrl = 0;
|
||||
m_hmotor_pos = 0x80;
|
||||
m_vmotor_pos = 0x80;
|
||||
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));
|
||||
}
|
||||
|
||||
void phantom_state::check_rotation()
|
||||
{
|
||||
if (m_vmotor_pos != 0 && m_vmotor_pos != 0xff)
|
||||
{
|
||||
if (m_motors_ctrl & 0x03) m_vmotor_sensor0_ff = true;
|
||||
if (m_motors_ctrl & 0x02) m_vmotor_sensor1_ff = true;
|
||||
}
|
||||
if (m_hmotor_pos != 0 && m_hmotor_pos != 0xff)
|
||||
{
|
||||
if (m_motors_ctrl & 0x0c) m_hmotor_sensor0_ff = true;
|
||||
if (m_motors_ctrl & 0x04) m_hmotor_sensor1_ff = true;
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
check_rotation();
|
||||
|
||||
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++;
|
||||
// simulate 1 rotation per each tick
|
||||
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++;
|
||||
|
||||
check_rotation();
|
||||
}
|
||||
|
||||
void phantom_state::update_pieces_position(int state)
|
||||
@ -170,7 +247,7 @@ void phantom_state::update_pieces_position(int state)
|
||||
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);
|
||||
bool valid_pos = ((m_hmotor_pos & 0x0f) > 0 && (m_hmotor_pos & 0x0f) <= 7) && ((m_vmotor_pos & 0x0f) > 8 && (m_vmotor_pos & 0x0f) <= 0xf);
|
||||
|
||||
if (state)
|
||||
{
|
||||
@ -212,48 +289,87 @@ void phantom_state::update_pieces_position(int state)
|
||||
I/O
|
||||
******************************************************************************/
|
||||
|
||||
void phantom_state::update_lcd()
|
||||
void phantom_state::update_lcd(u8 select)
|
||||
{
|
||||
u8 mask = (m_select & 0x80) ? 0xff : 0;
|
||||
for (int i = 0; i < 4; i++)
|
||||
m_display->write_row(i+1, (m_lcd_data >> (8*i) & 0xff) ^ mask);
|
||||
// update lcd at any edge
|
||||
if ((select ^ m_select) & 0x80)
|
||||
{
|
||||
u8 mask = (m_select & 0x80) ? 0xff : 0;
|
||||
for (int i = 0; i < 4; i++)
|
||||
m_display->write_row(i+1, (m_lcd_data >> (8*i) & 0xff) ^ mask);
|
||||
}
|
||||
}
|
||||
|
||||
void phantom_state::control_w(offs_t offset, u8 data)
|
||||
{
|
||||
u8 lcd_prev = m_select;
|
||||
|
||||
// a0-a2,d1: 74259
|
||||
uint8_t mask = 1 << offset;
|
||||
u8 mask = 1 << offset;
|
||||
m_select = (m_select & ~mask) | ((data & 0x02) ? mask : 0);
|
||||
|
||||
// 74259 Q0-Q3: 7442 a0-a3
|
||||
// 7442 0-8: led data, input mux
|
||||
// 74259 Q4: led select
|
||||
m_display->matrix_partial(0, 1, BIT(~m_select, 4), 1 << (m_select & 0xf));
|
||||
m_mux = m_select & 0xf;
|
||||
m_display->matrix_partial(0, 1, BIT(~m_select, 4), 1 << m_mux);
|
||||
|
||||
// 74259 Q6: bookrom bank
|
||||
m_rombank->set_entry(BIT(m_select, 6));
|
||||
|
||||
// 74259 Q7: lcd polarity
|
||||
update_lcd();
|
||||
update_lcd(lcd_prev);
|
||||
}
|
||||
|
||||
void chessterp_state::control_w(offs_t offset, u8 data)
|
||||
{
|
||||
// chesster version has two 74259, more I/O
|
||||
u8 lcd_prev = m_select;
|
||||
u8 nmi_prev = m_select2;
|
||||
|
||||
// a0-a2,d0,d1: 2*74259
|
||||
u8 mask = 1 << offset;
|
||||
m_select = (m_select & ~mask) | ((data & 1) ? mask : 0);
|
||||
m_select2 = (m_select2 & ~mask) | ((data & 2) ? mask : 0);
|
||||
|
||||
// 74259(both) Q0,Q1: 7442 a0-a3
|
||||
// 7442 0-8: led data, input mux
|
||||
// 74259(1) Q2: led select
|
||||
m_mux = BIT(m_select, 0) | BIT(m_select2, 0) << 1 | BIT(m_select, 1) << 2 | BIT(m_select2, 1) << 3;
|
||||
m_display->matrix_partial(0, 1, BIT(~m_select, 2), 1 << m_mux);
|
||||
|
||||
// 74259(2) Q2: eye leds
|
||||
m_eye_led = BIT(~m_select2, 2);
|
||||
|
||||
// 74259(2) Q3 rising edge: nmi clear
|
||||
if (~nmi_prev & m_select2 & 8)
|
||||
m_maincpu->set_input_line(INPUT_LINE_NMI, CLEAR_LINE);
|
||||
|
||||
// 74259(1) Q4,Q5, 74259(2) Q4: speechrom bank
|
||||
m_rombank->set_entry(BIT(m_select, 4) | (BIT(m_select2, 4) << 1) | (BIT(m_select, 5) << 2));
|
||||
|
||||
// 74259(1) Q7: lcd polarity
|
||||
update_lcd(lcd_prev);
|
||||
}
|
||||
|
||||
void phantom_state::motors_w(u8 data)
|
||||
{
|
||||
// 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
|
||||
// d0: vertical motor down
|
||||
// d1: vertical motor up
|
||||
// d2: horizontal motor left
|
||||
// d3: horizontal motor right
|
||||
// d4: electromagnet
|
||||
for (int i = 0; i < 5; i++)
|
||||
m_out_motor[i] = BIT(data, i);
|
||||
|
||||
if ((m_motors_ctrl ^ data) & 0x10)
|
||||
update_pieces_position(BIT(data, 4));
|
||||
|
||||
for (int i = 0; i < 5; i++)
|
||||
m_out_motor[i] = BIT(data, i);
|
||||
|
||||
m_dac->write(BIT(data, 5));
|
||||
m_motors_ctrl = data;
|
||||
|
||||
// d5: speaker (not for chesster version, though it still writes to it)
|
||||
if (m_dac != nullptr)
|
||||
m_dac->write(BIT(data, 5));
|
||||
}
|
||||
|
||||
void phantom_state::lcd_w(offs_t offset, u8 data)
|
||||
@ -265,47 +381,59 @@ void phantom_state::lcd_w(offs_t offset, u8 data)
|
||||
m_lcd_data = (m_lcd_data & ~mask) | (BIT(data, i * 2) ? mask : 0);
|
||||
mask <<= 8;
|
||||
}
|
||||
|
||||
update_lcd();
|
||||
}
|
||||
|
||||
u8 phantom_state::input_r(offs_t offset)
|
||||
{
|
||||
uint8_t mux = m_select & 0xf;
|
||||
uint8_t data = 0xff;
|
||||
u8 data = 0xff;
|
||||
|
||||
if (mux == 8)
|
||||
// buttons
|
||||
if (m_mux == 8)
|
||||
{
|
||||
if (BIT(m_input->read(), offset * 2 + 1)) data &= ~0x40;
|
||||
if (BIT(m_input->read(), offset * 2 + 0)) data &= ~0x80;
|
||||
if (BIT(m_inputs[0]->read(), offset * 2 + 1)) data &= ~0x40;
|
||||
if (BIT(m_inputs[0]->read(), offset * 2 + 0)) data &= ~0x80;
|
||||
}
|
||||
|
||||
// chessboard sensors
|
||||
else if (offset < 4)
|
||||
{
|
||||
if (BIT(m_board->read_file(offset * 2 + 1), mux)) data &= ~0x40;
|
||||
if (BIT(m_board->read_file(offset * 2 + 0), mux)) data &= ~0x80;
|
||||
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;
|
||||
}
|
||||
|
||||
// captured pieces
|
||||
else
|
||||
{
|
||||
if (BIT(m_board->read_file( 8 + (offset & 1)), mux)) data &= ~0x40; // black captured pieces
|
||||
if (BIT(m_board->read_file(11 - (offset & 1)), mux)) data &= ~0x80; // white captured pieces
|
||||
if (BIT(m_board->read_file( 8 + (offset & 1)), m_mux)) data &= ~0x40; // black
|
||||
if (BIT(m_board->read_file(11 - (offset & 1)), m_mux)) data &= ~0x80; // white
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
u8 chessterp_state::input_r(offs_t offset)
|
||||
{
|
||||
u8 data = phantom_state::input_r(offset) & 0xfe;
|
||||
|
||||
// d0: motion sensor (simulated here with an arbitrary timer)
|
||||
int motion = ((machine().time().as_ticks(50) & 0xff) > 0) ? 1 : 0;
|
||||
return data | motion | (m_inputs[1]->read() & 1);
|
||||
}
|
||||
|
||||
u8 phantom_state::motors_r(offs_t offset)
|
||||
{
|
||||
uint8_t data = 0xff;
|
||||
u8 data = 0xff;
|
||||
|
||||
// optical rotation sensors
|
||||
switch (offset)
|
||||
{
|
||||
case 0:
|
||||
if (!m_vmotor_sensor1_ff) data &= ~0x40;
|
||||
if (!m_hmotor_sensor1_ff) data &= ~0x80;
|
||||
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;
|
||||
if (!m_vmotor_sensor0_ff) data &= ~0x40;
|
||||
if (!m_hmotor_sensor0_ff) data &= ~0x80;
|
||||
break;
|
||||
}
|
||||
|
||||
@ -316,6 +444,7 @@ u8 phantom_state::irq_ack_r()
|
||||
{
|
||||
if (!machine().side_effects_disabled())
|
||||
m_maincpu->set_input_line(R65C02_IRQ_LINE, CLEAR_LINE);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -345,70 +474,109 @@ void phantom_state::main_map(address_map &map)
|
||||
{
|
||||
map(0x0000, 0x1fff).ram();
|
||||
map(0x2000, 0x2007).mirror(0x00f8).w(FUNC(phantom_state::control_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(0x2100, 0x2107).mirror(0x00f8).w(FUNC(phantom_state::lcd_w)).nopr();
|
||||
map(0x2200, 0x2200).mirror(0x00ff).w(FUNC(phantom_state::motors_w));
|
||||
map(0x2400, 0x2405).mirror(0x00f8).r(FUNC(phantom_state::input_r));
|
||||
map(0x2406, 0x2407).mirror(0x00f8).r(FUNC(phantom_state::motors_r));
|
||||
map(0x2500, 0x2500).mirror(0x00ff).r(FUNC(phantom_state::hmotor_ff_clear_r));
|
||||
map(0x2600, 0x2600).mirror(0x00ff).r(FUNC(phantom_state::vmotor_ff_clear_r));
|
||||
map(0x2700, 0x2700).mirror(0x00ff).r(FUNC(phantom_state::irq_ack_r));
|
||||
map(0x4000, 0x7fff).bankr("rombank");
|
||||
map(0x8000, 0xffff).rom();
|
||||
}
|
||||
|
||||
void chessterp_state::main_map(address_map &map)
|
||||
{
|
||||
phantom_state::main_map(map);
|
||||
map(0x2300, 0x2300).mirror(0x00ff).w("speech", FUNC(dac_byte_interface::data_w));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
Input Ports
|
||||
******************************************************************************/
|
||||
|
||||
static INPUT_PORTS_START( fphantom )
|
||||
static INPUT_PORTS_START( phantom )
|
||||
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(0x001, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_V) PORT_NAME("Verify / Problem")
|
||||
PORT_BIT(0x002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_O) PORT_NAME("Option / Time")
|
||||
PORT_BIT(0x004, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_L) PORT_NAME("Level / New")
|
||||
PORT_BIT(0x008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_T) PORT_NAME("Take Back / Replay")
|
||||
PORT_BIT(0x010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_H) PORT_NAME("Hint / Info")
|
||||
PORT_BIT(0x020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_M) PORT_NAME("Move / Alternate")
|
||||
PORT_BIT(0x040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_A) PORT_NAME("Auto / Stop")
|
||||
PORT_BIT(0x080, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_C) 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
|
||||
|
||||
static INPUT_PORTS_START( cphantom )
|
||||
PORT_INCLUDE( phantom )
|
||||
|
||||
PORT_MODIFY("IN.0")
|
||||
PORT_BIT(0x002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_O) PORT_NAME("Option / Replay")
|
||||
PORT_BIT(0x008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_I) PORT_NAME("Info / Auto")
|
||||
PORT_BIT(0x010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_T) PORT_NAME("Take Back / Repeat")
|
||||
PORT_BIT(0x020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_H) PORT_NAME("Hint / Yes")
|
||||
PORT_BIT(0x040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_M) PORT_NAME("Move / No/Stop")
|
||||
|
||||
PORT_START("IN.1") // motion sensor is inverted here, eg. hold down key to pretend noone's there
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_F1) PORT_NAME("Motion Sensor")
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
Machine Configs
|
||||
******************************************************************************/
|
||||
|
||||
void phantom_state::fphantom(machine_config &config)
|
||||
void phantom_state::phantom(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_assert), attotime::from_hz(600)); // guessed
|
||||
// basic machine hardware
|
||||
R65C02(config, m_maincpu, 4.9152_MHz_XTAL); // R65C02P4 or RP65C02G
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &phantom_state::main_map);
|
||||
|
||||
const attotime irq_period = attotime::from_hz(4.9152_MHz_XTAL / 0x2000); // 4060, 600Hz
|
||||
m_maincpu->set_periodic_int(FUNC(phantom_state::irq0_line_assert), irq_period);
|
||||
|
||||
TIMER(config, "motors_timer").configure_periodic(FUNC(phantom_state::motors_timer), irq_period * 5);
|
||||
|
||||
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 */
|
||||
// video hardware
|
||||
PWM_DISPLAY(config, m_display).set_size(1+4, 9);
|
||||
m_display->set_segmask(0x1e, 0x7f);
|
||||
|
||||
config.set_default_layout(layout_fidel_phantom);
|
||||
|
||||
/* sound hardware */
|
||||
// sound hardware
|
||||
SPEAKER(config, "speaker").front_center();
|
||||
DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||
}
|
||||
|
||||
void chessterp_state::cphantom(machine_config &config)
|
||||
{
|
||||
phantom(config);
|
||||
|
||||
// basic machine hardware
|
||||
const attotime nmi_period = attotime::from_hz(4.9152_MHz_XTAL / 0x200); // 4060, 9.6kHz
|
||||
timer_device &nmi_clock(TIMER(config, "nmi_clock"));
|
||||
nmi_clock.configure_periodic(FUNC(chessterp_state::nmi_timer), nmi_period);
|
||||
nmi_clock.set_start_delay(nmi_period / 2); // interleaved with irq_period
|
||||
|
||||
config.set_default_layout(layout_fidel_cphantom);
|
||||
|
||||
// sound hardware
|
||||
config.device_remove("dac");
|
||||
DAC_8BIT_R2R(config, "speech").add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
@ -423,6 +591,15 @@ ROM_START( fphantom ) // model 6100, PCB label 510.1128A01
|
||||
ROM_LOAD("u_4_white.u4", 0x0000, 0x8000, CRC(e4181ba2) SHA1(1f77d1867c6f566be98645fc252a01108f412c96) ) // 27C256
|
||||
ROM_END
|
||||
|
||||
|
||||
ROM_START( cphantom ) // model 6126, PCB label 510.1128D01
|
||||
ROM_REGION( 0x10000, "maincpu", 0 )
|
||||
ROM_LOAD("pv.u3", 0x8000, 0x8000, CRC(450a9ab5) SHA1(8392c76cf18cd6f8b17c8b12fac40c5cea874941) ) // 27C256
|
||||
|
||||
ROM_REGION( 0x20000, "rombank", 0 )
|
||||
ROM_LOAD("101-1091b02.u4", 0x0000, 0x20000, CRC(fa370e88) SHA1(a937c8f1ec295cf9539d12466993974e40771493) ) // AMI, 27C010 or equivalent
|
||||
ROM_END
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
|
||||
@ -431,5 +608,7 @@ ROM_END
|
||||
Drivers
|
||||
******************************************************************************/
|
||||
|
||||
// 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 )
|
||||
// YEAR NAME PARENT CMP MACHINE INPUT STATE INIT COMPANY, FULLNAME, FLAGS
|
||||
CONS( 1988, fphantom, 0, 0, phantom, phantom, phantom_state, init_phantom, "Fidelity Electronics", "Phantom (Fidelity)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_CONTROLS | MACHINE_MECHANICAL )
|
||||
|
||||
CONS( 1991, cphantom, 0, 0, cphantom, cphantom, chessterp_state, init_phantom, "Fidelity Electronics", "Chesster Phantom", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_CONTROLS | MACHINE_MECHANICAL )
|
||||
|
713
src/mame/layout/fidel_cphantom.lay
Normal file
713
src/mame/layout/fidel_cphantom.lay
Normal file
@ -0,0 +1,713 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
license:CC0
|
||||
-->
|
||||
<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="INFO"><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="TAKE BACK"><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="HINT"><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="MOVE"><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="REPLAY"><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="AUTO"><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="REPEAT"><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="YES"><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="NO/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.svg"/></element>
|
||||
<element name="text_p2"> <image file="chess/wq.svg"/></element>
|
||||
<element name="text_p3"> <image file="chess/wr.svg"/></element>
|
||||
<element name="text_p4"> <image file="chess/wb.svg"/></element>
|
||||
<element name="text_p5"> <image file="chess/wn.svg"/></element>
|
||||
<element name="text_p6"> <image file="chess/wp.svg"/></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.svg" state="1"/>
|
||||
<image file="chess/wn.svg" state="2"/>
|
||||
<image file="chess/wb.svg" state="3"/>
|
||||
<image file="chess/wr.svg" state="4"/>
|
||||
<image file="chess/wq.svg" state="5"/>
|
||||
<image file="chess/wk.svg" state="6"/>
|
||||
|
||||
<image file="chess/bp.svg" state="7"/>
|
||||
<image file="chess/bn.svg" state="8"/>
|
||||
<image file="chess/bb.svg" state="9"/>
|
||||
<image file="chess/br.svg" state="10"/>
|
||||
<image file="chess/bq.svg" state="11"/>
|
||||
<image file="chess/bk.svg" state="12"/>
|
||||
|
||||
<!-- selected pieces -->
|
||||
<image file="chess/wp.svg" state="13"><color alpha="0.5" /></image>
|
||||
<image file="chess/wn.svg" state="14"><color alpha="0.5" /></image>
|
||||
<image file="chess/wb.svg" state="15"><color alpha="0.5" /></image>
|
||||
<image file="chess/wr.svg" state="16"><color alpha="0.5" /></image>
|
||||
<image file="chess/wq.svg" state="17"><color alpha="0.5" /></image>
|
||||
<image file="chess/wk.svg" state="18"><color alpha="0.5" /></image>
|
||||
|
||||
<image file="chess/bp.svg" state="19"><color alpha="0.5" /></image>
|
||||
<image file="chess/bn.svg" state="20"><color alpha="0.5" /></image>
|
||||
<image file="chess/bb.svg" state="21"><color alpha="0.5" /></image>
|
||||
<image file="chess/br.svg" state="22"><color alpha="0.5" /></image>
|
||||
<image file="chess/bq.svg" state="23"><color alpha="0.5" /></image>
|
||||
<image file="chess/bk.svg" state="24"><color alpha="0.5" /></image>
|
||||
</element>
|
||||
|
||||
<group name="sb_board">
|
||||
<bounds x="-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=" <<"><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=" < "><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=" >"><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=" >>"><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="digit1" ref="digit"><bounds x="5.375" y="6.5" width="3" height="4.5" /></element>
|
||||
<element name="digit2" ref="digit"><bounds x="9.875" y="6.5" width="3" height="4.5" /></element>
|
||||
<element name="digit3" ref="digit"><bounds x="14.375" y="6.5" width="3" height="4.5" /></element>
|
||||
<element name="digit4" ref="digit"><bounds x="18.875" y="6.5" width="3" height="4.5" /></element>
|
||||
|
||||
<element name="1.7" ref="ldot"><bounds x="8.75" y="10.625" width="0.45" height="0.45" /></element>
|
||||
<element name="2.7" ref="ldot"><bounds x="13.25" y="10.625" width="0.45" height="0.45" /></element>
|
||||
<element name="3.7" ref="ldot"><bounds x="17.75" y="10.625" width="0.45" height="0.45" /></element>
|
||||
|
||||
<element name="4.7" ref="ldot"><bounds x="13.5575" y="7.85" width="0.45" height="0.45" /></element>
|
||||
<element name="4.7" ref="ldot"><bounds x="13.3925" y="9.2375" width="0.45" height="0.45" /></element>
|
||||
</group>
|
||||
|
||||
<!-- motor status -->
|
||||
|
||||
<element name="text_motor"><text string="MOTOR:"><color red="0.843" green="0.678" blue="0.482" /></text></element>
|
||||
<element name="text_motoru">
|
||||
<text string="U" state="0"><color red="0.209" green="0.209" blue="0.201" /></text>
|
||||
<text string="U" state="1"><color red="0.9" green="0.9" blue="0.85" /></text>
|
||||
</element>
|
||||
<element name="text_motord">
|
||||
<text string="D" state="0"><color red="0.209" green="0.209" blue="0.201" /></text>
|
||||
<text string="D" state="1"><color red="0.9" green="0.9" blue="0.85" /></text>
|
||||
</element>
|
||||
<element name="text_motorl">
|
||||
<text string="L" state="0" align="2"><color red="0.209" green="0.209" blue="0.201" /></text>
|
||||
<text string="L" state="1" align="2"><color red="0.9" green="0.9" blue="0.85" /></text>
|
||||
</element>
|
||||
<element name="text_motorr">
|
||||
<text string="R" state="0" align="1"><color red="0.209" green="0.209" blue="0.201" /></text>
|
||||
<text string="R" state="1" align="1"><color red="0.9" green="0.9" blue="0.85" /></text>
|
||||
</element>
|
||||
<element name="text_motorx">
|
||||
<text string="X" state="0"><color red="0.209" green="0.209" blue="0.201" /></text>
|
||||
<text string="X" state="1"><color red="0.9" green="0.9" blue="0.85" /></text>
|
||||
</element>
|
||||
|
||||
<group name="motor">
|
||||
<bounds x="0" y="0" width="10" height="12" />
|
||||
<element ref="text_motor"><bounds x="0" y="0" width="10" height="2" /></element>
|
||||
<element ref="cwhite"><bounds x="0" y="11" width="10" height="1" /></element>
|
||||
|
||||
<element name="motor.1" ref="text_motoru"><bounds x="0" y="3" width="10" height="2" /></element>
|
||||
<element name="motor.2" ref="text_motorl"><bounds x="0" y="5" width="3.5" height="2" /></element>
|
||||
<element name="motor.3" ref="text_motorr"><bounds x="6.5" y="5" width="3.5" height="2" /></element>
|
||||
<element name="motor.4" ref="text_motorx"><bounds x="0" y="5" width="10" height="2" /></element>
|
||||
<element name="motor.0" ref="text_motord"><bounds x="0" y="7" width="10" height="2" /></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="motor"><bounds x="-33" y="84.5" width="10" height="12" /></group>
|
||||
|
||||
<group ref="panel"><bounds x="-21" y="85" width="122" height="17" /></group>
|
||||
|
||||
<element name="eye_led" ref="led"><bounds x="20" y="100" width="1.5" height="1.5" /></element>
|
||||
<element name="eye_led" ref="led"><bounds x="58.5" y="100" width="1.5" height="1.5" /></element>
|
||||
</view>
|
||||
</mamelayout>
|
@ -14026,6 +14026,7 @@ granits // RCS
|
||||
miniscco
|
||||
|
||||
@source:fidel_phantom.cpp
|
||||
cphantom //
|
||||
fphantom //
|
||||
|
||||
@source:fidel_sc12.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user