diff options
author | hap <happppp@users.noreply.github.com> | 2021-07-13 19:41:59 +0200 |
---|---|---|
committer | hap <happppp@users.noreply.github.com> | 2021-07-13 19:42:12 +0200 |
commit | d199ad1e801f9b0e1991c33bf4599a81534766e7 (patch) | |
tree | 647035132249cf996fe877021e1ecd657766dc5d | |
parent | b6af12a9d40e882cbfc3bb1e052c8e98acae5003 (diff) |
New working machines
--------------------
Eldorado Chess Challenger [hap, bataais]
-rw-r--r-- | scripts/target/mame/mess.lua | 1 | ||||
-rw-r--r-- | src/mame/drivers/fidel_eldorado.cpp | 206 | ||||
-rw-r--r-- | src/mame/layout/fidel_eldorado.lay | 506 | ||||
-rw-r--r-- | src/mame/mame.lst | 3 | ||||
-rw-r--r-- | src/mame/mess.flt | 1 |
5 files changed, 717 insertions, 0 deletions
diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua index 098aea47582..24b0e40baf0 100644 --- a/scripts/target/mame/mess.lua +++ b/scripts/target/mame/mess.lua @@ -2456,6 +2456,7 @@ files { MAME_DIR .. "src/mame/drivers/fidel_dames.cpp", MAME_DIR .. "src/mame/drivers/fidel_desdis.cpp", MAME_DIR .. "src/mame/drivers/fidel_eag68k.cpp", + MAME_DIR .. "src/mame/drivers/fidel_eldorado.cpp", MAME_DIR .. "src/mame/drivers/fidel_elite.cpp", MAME_DIR .. "src/mame/drivers/fidel_excel.cpp", MAME_DIR .. "src/mame/drivers/fidel_msc.cpp", diff --git a/src/mame/drivers/fidel_eldorado.cpp b/src/mame/drivers/fidel_eldorado.cpp new file mode 100644 index 00000000000..861e03724a1 --- /dev/null +++ b/src/mame/drivers/fidel_eldorado.cpp @@ -0,0 +1,206 @@ +// license:BSD-3-Clause +// copyright-holders:hap +// thanks-to:bataais +/****************************************************************************** + +Fidelity Eldorado Chess Challenger (model 6119) + +Hardware notes: +- PCB label CXG262-600-001, CXG262-600-101 +- TMP80C49AP6-6744 MCU, 2KB internal ROM, 6MHz XTAL +- buzzer, 16 leds, 8*8 chessboard buttons + +The chess engine is by Ron Nelson. The hardware was made by CXG for Fidelity, +as seen on the PCB and also confirmed by Ron Nelson. + +******************************************************************************/ + +#include "emu.h" + +#include "cpu/mcs48/mcs48.h" +#include "machine/sensorboard.h" +#include "sound/dac.h" +#include "video/pwm.h" + +#include "speaker.h" + +// internal artwork +#include "fidel_eldorado.lh" // clickable + + +namespace { + +class eldorado_state : public driver_device +{ +public: + eldorado_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), + m_maincpu(*this, "maincpu"), + m_display(*this, "display"), + m_board(*this, "board"), + m_dac(*this, "dac"), + m_inputs(*this, "IN.0") + { } + + // machine configs + void eldorado(machine_config &config); + +protected: + virtual void machine_start() override; + +private: + // devices/pointers + required_device<mcs48_cpu_device> m_maincpu; + required_device<pwm_display_device> m_display; + required_device<sensorboard_device> m_board; + required_device<dac_bit_interface> m_dac; + required_ioport m_inputs; + + // I/O handlers + void update_display(); + void mux_w(u8 data); + u8 mux_r(); + void control_w(u8 data); + DECLARE_READ_LINE_MEMBER(t0_r); + u8 input_r(); + + bool m_kp_select = false; + u16 m_inp_mux = 0; + u8 m_led_select = 0; +}; + +void eldorado_state::machine_start() +{ + // register for savestates + save_item(NAME(m_kp_select)); + save_item(NAME(m_inp_mux)); + save_item(NAME(m_led_select)); +} + + + +/****************************************************************************** + I/O +******************************************************************************/ + +void eldorado_state::update_display() +{ + m_display->matrix(m_led_select, m_inp_mux); +} + +void eldorado_state::mux_w(u8 data) +{ + // D0-D7: input mux, led data + m_inp_mux = ~data; + update_display(); +} + +u8 eldorado_state::mux_r() +{ + return ~m_inp_mux; +} + +void eldorado_state::control_w(u8 data) +{ + // P24: speaker out + m_dac->write(BIT(data, 4)); + + // P25,P26: led select + m_led_select = ~data >> 5 & 3; + update_display(); + + // P27: keypad select + m_kp_select = !bool(data & 0x80); +} + +READ_LINE_MEMBER(eldorado_state::t0_r) +{ + // T0: P27 + return m_kp_select ? 0 : 1; +} + +u8 eldorado_state::input_r() +{ + u8 data = 0; + + // P10-P17: multiplexed inputs + // read chessboard buttons + for (int i = 0; i < 8; i++) + if (BIT(m_inp_mux, i)) + data |= m_board->read_file(i); + + // read sidepanel keypad + if (m_kp_select) + data |= m_inputs->read(); + + return ~data; +} + + + +/****************************************************************************** + Input Ports +******************************************************************************/ + +static INPUT_PORTS_START( eldorado ) + PORT_START("IN.0") + PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_NAME("Reverse / Pawn") + PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD) PORT_NAME("Move / Knight") + PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD) PORT_NAME("Sound / Bishop") + PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD) PORT_NAME("Level / Rook") + PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD) PORT_NAME("Verify / Queen") + PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD) PORT_NAME("Problem / King") + PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_DEL) PORT_CODE(KEYCODE_BACKSPACE) PORT_NAME("Clear") + PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_N) PORT_NAME("New Game") +INPUT_PORTS_END + + + +/****************************************************************************** + Machine Configs +******************************************************************************/ + +void eldorado_state::eldorado(machine_config &config) +{ + /* basic machine hardware */ + I8049(config, m_maincpu, 6_MHz_XTAL); + m_maincpu->p1_in_cb().set(FUNC(eldorado_state::input_r)); + m_maincpu->p2_out_cb().set(FUNC(eldorado_state::control_w)); + m_maincpu->bus_in_cb().set(FUNC(eldorado_state::mux_r)); + m_maincpu->bus_out_cb().set(FUNC(eldorado_state::mux_w)); + m_maincpu->t0_in_cb().set(FUNC(eldorado_state::t0_r)); + + SENSORBOARD(config, m_board).set_type(sensorboard_device::BUTTONS); + m_board->init_cb().set(m_board, FUNC(sensorboard_device::preset_chess)); + m_board->set_delay(attotime::from_msec(150)); + + /* video hardware */ + PWM_DISPLAY(config, m_display).set_size(2, 8); + config.set_default_layout(layout_fidel_eldorado); + + /* sound hardware */ + SPEAKER(config, "speaker").front_center(); + DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); +} + + + +/****************************************************************************** + ROM Definitions +******************************************************************************/ + +ROM_START( feldo ) + ROM_REGION( 0x0800, "maincpu", 0 ) + ROM_LOAD("100-1027a01", 0x0000, 0x0800, CRC(66419b29) SHA1(8f91e56cb3fcc9bb738946ade34d34c611e983f0) ) +ROM_END + +} // anonymous namespace + + + +/****************************************************************************** + Drivers +******************************************************************************/ + +// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS +CONS( 1990, feldo, 0, 0, eldorado, eldorado, eldorado_state, empty_init, "Fidelity Electronics / CXG Systems", "Eldorado Chess Challenger", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) diff --git a/src/mame/layout/fidel_eldorado.lay b/src/mame/layout/fidel_eldorado.lay new file mode 100644 index 00000000000..5d8a41cf655 --- /dev/null +++ b/src/mame/layout/fidel_eldorado.lay @@ -0,0 +1,506 @@ +<?xml version="1.0"?> +<!-- +license:CC0 +--> +<mamelayout version="2"> + +<!-- define elements --> + + <element name="led" defstate="0"> + <disk state="1"><color red="1.0" green="0.1" blue="0.15" /></disk> + <disk state="0"><color red="0.15" green="0.015" blue="0.02" /></disk> + </element> + + <element name="hlb" defstate="0"> + <rect state="1"><color red="0" green="0" blue="0" /></rect> + </element> + + <element name="text_1"> + <rect><color red="0.55" green="0.25" blue="0.15" /></rect> + <text string="1" align="1"><color red="0.9" green="0.9" blue="0.9" /></text> + </element> + <element name="text_2"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="2" align="1"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_3"> + <rect><color red="0.55" green="0.25" blue="0.15" /></rect> + <text string="3" align="1"><color red="0.9" green="0.9" blue="0.9" /></text> + </element> + <element name="text_4"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="4" align="1"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_5"> + <rect><color red="0.55" green="0.25" blue="0.15" /></rect> + <text string="5" align="1"><color red="0.9" green="0.9" blue="0.9" /></text> + </element> + <element name="text_6"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="6" align="1"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_7"> + <rect><color red="0.55" green="0.25" blue="0.15" /></rect> + <text string="7" align="1"><color red="0.9" green="0.9" blue="0.9" /></text> + </element> + <element name="text_8"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="8" align="1"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + + <element name="text_a"> + <rect><color red="0.55" green="0.25" blue="0.15" /></rect> + <text string="A"><color red="0.9" green="0.9" blue="0.9" /></text> + </element> + <element name="text_b"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="B"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_c"> + <rect><color red="0.55" green="0.25" blue="0.15" /></rect> + <text string="C"><color red="0.9" green="0.9" blue="0.9" /></text> + </element> + <element name="text_d"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="D"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_e"> + <rect><color red="0.55" green="0.25" blue="0.15" /></rect> + <text string="E"><color red="0.9" green="0.9" blue="0.9" /></text> + </element> + <element name="text_f"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="F"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_g"> + <rect><color red="0.55" green="0.25" blue="0.15" /></rect> + <text string="G"><color red="0.9" green="0.9" blue="0.9" /></text> + </element> + <element name="text_h"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="H"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + + <element name="text_check"> + <rect><color red="0.1" green="0.1" blue="0.1" /></rect> + <text string="CHECK"><color red="0.85" green="0.85" blue="0.85" /></text> + </element> + <element name="text_win"> + <rect><color red="0.1" green="0.1" blue="0.1" /></rect> + <text string="YOU WIN"><color red="0.85" green="0.85" blue="0.85" /></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> + + <element name="text_l1a"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="NEW"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_l1b"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="GAME"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_l2"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="CLEAR"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_l3"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="PROBLEM"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_l4"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="VERIFY"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_l5"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="LEVEL"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_l6"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="SOUND"><color red="0.05" green="0.05" blue="0.05" /></text><!-- speaker symbol --> + </element> + <element name="text_l7"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="MOVE"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + <element name="text_l8"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="REVERSE"><color red="0.05" green="0.05" blue="0.05" /></text> + </element> + + +<!-- sb board --> + + <element name="cblack"><rect><color red="0.55" green="0.25" blue="0.15" /></rect></element> + <element name="cwhite"><rect><color red="0.81" green="0.8" blue="0.79" /></rect></element> + + <element name="hlbb" defstate="0"> + <text string=" "><bounds x="0" y="0" width="1" height="1" /></text> + <disk state="1"> + <bounds x="0.12" y="0.12" width="0.76" height="0.76" /> + <color red="0" green="0" blue="0" /> + </disk> + </element> + + <element name="piece" defstate="0"> + <image file="chess/wp.svg" state="1"/> + <image file="chess/wn.svg" state="2"/> + <image file="chess/wb.svg" state="3"/> + <image file="chess/wr.svg" state="4"/> + <image file="chess/wq.svg" state="5"/> + <image file="chess/wk.svg" state="6"/> + + <image file="chess/bp.svg" state="7"/> + <image file="chess/bn.svg" state="8"/> + <image file="chess/bb.svg" state="9"/> + <image file="chess/br.svg" state="10"/> + <image file="chess/bq.svg" state="11"/> + <image file="chess/bk.svg" state="12"/> + + <!-- selected pieces --> + <image file="chess/wp.svg" state="13"><color alpha="0.5" /></image> + <image file="chess/wn.svg" state="14"><color alpha="0.5" /></image> + <image file="chess/wb.svg" state="15"><color alpha="0.5" /></image> + <image file="chess/wr.svg" state="16"><color alpha="0.5" /></image> + <image file="chess/wq.svg" state="17"><color alpha="0.5" /></image> + <image file="chess/wk.svg" state="18"><color alpha="0.5" /></image> + + <image file="chess/bp.svg" state="19"><color alpha="0.5" /></image> + <image file="chess/bn.svg" state="20"><color alpha="0.5" /></image> + <image file="chess/bb.svg" state="21"><color alpha="0.5" /></image> + <image file="chess/br.svg" state="22"><color alpha="0.5" /></image> + <image file="chess/bq.svg" state="23"><color alpha="0.5" /></image> + <image file="chess/bk.svg" state="24"><color alpha="0.5" /></image> + </element> + + <group name="sb_board"> + <bounds x="0" y="0" width="80" height="80" /> + + <!-- squares (avoid seams) --> + <element ref="cwhite"><bounds x="0" y="0" width="11" height="11" /></element> + <element ref="cblack"><bounds x="10" y="0" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="20" y="0" width="11" height="11" /></element> + <element ref="cblack"><bounds x="30" y="0" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="40" y="0" width="11" height="11" /></element> + <element ref="cblack"><bounds x="50" y="0" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="60" y="0" width="11" height="11" /></element> + <element ref="cblack"><bounds x="70" y="0" width="10" height="11" /></element> + + <element ref="cblack"><bounds x="0" y="10" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="10" y="10" width="11" height="11" /></element> + <element ref="cblack"><bounds x="20" y="10" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="30" y="10" width="11" height="11" /></element> + <element ref="cblack"><bounds x="40" y="10" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="50" y="10" width="11" height="11" /></element> + <element ref="cblack"><bounds x="60" y="10" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="70" y="10" width="10" height="11" /></element> + + <element ref="cwhite"><bounds x="0" y="20" width="11" height="11" /></element> + <element ref="cblack"><bounds x="10" y="20" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="20" y="20" width="11" height="11" /></element> + <element ref="cblack"><bounds x="30" y="20" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="40" y="20" width="11" height="11" /></element> + <element ref="cblack"><bounds x="50" y="20" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="60" y="20" width="11" height="11" /></element> + <element ref="cblack"><bounds x="70" y="20" width="10" height="11" /></element> + + <element ref="cblack"><bounds x="0" y="30" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="10" y="30" width="11" height="11" /></element> + <element ref="cblack"><bounds x="20" y="30" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="30" y="30" width="11" height="11" /></element> + <element ref="cblack"><bounds x="40" y="30" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="50" y="30" width="11" height="11" /></element> + <element ref="cblack"><bounds x="60" y="30" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="70" y="30" width="10" height="11" /></element> + + <element ref="cwhite"><bounds x="0" y="40" width="11" height="11" /></element> + <element ref="cblack"><bounds x="10" y="40" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="20" y="40" width="11" height="11" /></element> + <element ref="cblack"><bounds x="30" y="40" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="40" y="40" width="11" height="11" /></element> + <element ref="cblack"><bounds x="50" y="40" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="60" y="40" width="11" height="11" /></element> + <element ref="cblack"><bounds x="70" y="40" width="10" height="11" /></element> + + <element ref="cblack"><bounds x="0" y="50" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="10" y="50" width="11" height="11" /></element> + <element ref="cblack"><bounds x="20" y="50" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="30" y="50" width="11" height="11" /></element> + <element ref="cblack"><bounds x="40" y="50" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="50" y="50" width="11" height="11" /></element> + <element ref="cblack"><bounds x="60" y="50" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="70" y="50" width="10" height="11" /></element> + + <element ref="cwhite"><bounds x="0" y="60" width="11" height="11" /></element> + <element ref="cblack"><bounds x="10" y="60" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="20" y="60" width="11" height="11" /></element> + <element ref="cblack"><bounds x="30" y="60" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="40" y="60" width="11" height="11" /></element> + <element ref="cblack"><bounds x="50" y="60" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="60" y="60" width="11" height="11" /></element> + <element ref="cblack"><bounds x="70" y="60" width="10" height="11" /></element> + + <element ref="cblack"><bounds x="0" y="70" width="11" height="10" /></element> + <element ref="cwhite"><bounds x="10" y="70" width="11" height="10" /></element> + <element ref="cblack"><bounds x="20" y="70" width="11" height="10" /></element> + <element ref="cwhite"><bounds x="30" y="70" width="11" height="10" /></element> + <element ref="cblack"><bounds x="40" y="70" width="11" height="10" /></element> + <element ref="cwhite"><bounds x="50" y="70" width="11" height="10" /></element> + <element ref="cblack"><bounds x="60" y="70" width="11" height="10" /></element> + <element ref="cwhite"><bounds x="70" y="70" width="10" height="10" /></element> + + <!-- coords --> + <element ref="text_8"><bounds x="0.25" y="4.3" width="2" height="1.4" /></element> + <element ref="text_7"><bounds x="0.25" y="14.3" width="2" height="1.4" /></element> + <element ref="text_6"><bounds x="0.25" y="24.3" width="2" height="1.4" /></element> + <element ref="text_5"><bounds x="0.25" y="34.3" width="2" height="1.4" /></element> + <element ref="text_4"><bounds x="0.25" y="44.3" width="2" height="1.4" /></element> + <element ref="text_3"><bounds x="0.25" y="54.3" width="2" height="1.4" /></element> + <element ref="text_2"><bounds x="0.25" y="64.3" width="2" height="1.4" /></element> + <element ref="text_1"><bounds x="0.25" y="74.3" width="2" height="1.4" /></element> + + <element ref="text_a"><bounds x="4" y="78.55" width="2" height="1.4" /></element> + <element ref="text_b"><bounds x="14" y="78.55" width="2" height="1.4" /></element> + <element ref="text_c"><bounds x="24" y="78.55" width="2" height="1.4" /></element> + <element ref="text_d"><bounds x="34" y="78.55" width="2" height="1.4" /></element> + <element ref="text_e"><bounds x="44" y="78.55" width="2" height="1.4" /></element> + <element ref="text_f"><bounds x="54" y="78.55" width="2" height="1.4" /></element> + <element ref="text_g"><bounds x="64" y="78.55" width="2" height="1.4" /></element> + <element ref="text_h"><bounds x="74" y="78.55" width="2" height="1.4" /></element> + + <element ref="text_check"><bounds x="17.5" y="78.75" width="5" height="1" /></element> + <element ref="text_win"><bounds x="57.5" y="78.75" width="5" height="1" /></element> + + <!-- sensors, pieces --> + <repeat count="8"> + <param name="y" start="0" increment="10" /> + <param name="i" start="8" increment="-1" /> + + <element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x01"><bounds x="0" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x02"><bounds x="10" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x04"><bounds x="20" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x08"><bounds x="30" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x10"><bounds x="40" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x20"><bounds x="50" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x40"><bounds x="60" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:RANK.~i~" inputmask="0x80"><bounds x="70" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + + <element name="piece_a~i~" ref="piece"><bounds x="0" y="~y~" width="10" height="10" /></element> + <element name="piece_b~i~" ref="piece"><bounds x="10" y="~y~" width="10" height="10" /></element> + <element name="piece_c~i~" ref="piece"><bounds x="20" y="~y~" width="10" height="10" /></element> + <element name="piece_d~i~" ref="piece"><bounds x="30" y="~y~" width="10" height="10" /></element> + <element name="piece_e~i~" ref="piece"><bounds x="40" y="~y~" width="10" height="10" /></element> + <element name="piece_f~i~" ref="piece"><bounds x="50" y="~y~" width="10" height="10" /></element> + <element name="piece_g~i~" ref="piece"><bounds x="60" y="~y~" width="10" height="10" /></element> + <element name="piece_h~i~" ref="piece"><bounds x="70" y="~y~" width="10" height="10" /></element> + </repeat> + </group> + + +<!-- sb ui --> + + <element name="hlub" defstate="0"> + <rect state="1"><color red="0" green="0" blue="0" /></rect> + </element> + + <element name="text_uit1"><text string="S.BOARD"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uit2"><text string="INTERFACE"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uib1"><text string="BOARD:"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uib2"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="RESET"><color red="0.01" green="0.01" blue="0.01" /></text> + </element> + <element name="text_uib3"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="CLEAR"><color red="0.01" green="0.01" blue="0.01" /></text> + </element> + <element name="text_uis1"><text string="SPAWN:"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uih1"><text string="HAND:"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uih2"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string="REMOVE"><color red="0.01" green="0.01" blue="0.01" /></text> + </element> + <element name="text_uiu1"><text string="UNDO:"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uiu2a"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string=" <<"><color red="0.01" green="0.01" blue="0.01" /></text> + </element> + <element name="text_uiu2b"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string=" < "><color red="0.01" green="0.01" blue="0.01" /></text> + </element> + <element name="text_uiu2c"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string=" >"><color red="0.01" green="0.01" blue="0.01" /></text> + </element> + <element name="text_uiu2d"> + <rect><color red="0.81" green="0.8" blue="0.79" /></rect> + <text string=" >>"><color red="0.01" green="0.01" blue="0.01" /></text> + </element> + <element name="text_uiu3a" defstate="0"> + <simplecounter maxstate="999" digits="1" align="2"> + <color red="0.81" green="0.8" blue="0.79" /> + </simplecounter> + </element> + <element name="text_uiu3b"><text string="/"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uiu3c" defstate="0"> + <simplecounter maxstate="999" digits="1" align="1"> + <color red="0.81" green="0.8" blue="0.79" /> + </simplecounter> + </element> + + <group name="sb_ui"> + <bounds x="0" y="0" width="10" height="80" /> + <element ref="cblack"><bounds x="0" y="0" width="10" height="1" /></element> + <element ref="cblack"><bounds x="0" y="7" width="10" height="1" /></element> + <element ref="cblack"><bounds x="0" y="79" width="10" height="1" /></element> + <element ref="text_uit1"><bounds x="0" y="2" width="10" height="2" /></element> + <element ref="text_uit2"><bounds x="0" y="4" width="10" height="2" /></element> + + <!-- board --> + <element ref="text_uib1"><bounds x="0" y="9" width="10" height="2" /></element> + <element ref="cwhite"><bounds x="1" y="11.5" width="8" height="2.5" /></element> + <element ref="cwhite"><bounds x="1" y="15" width="8" height="2.5" /></element> + + <element ref="text_uib2"><bounds x="1.5" y="11.75" width="7" height="2" /></element> + <element ref="text_uib3"><bounds x="1.5" y="15.25" width="7" height="2" /></element> + + <element ref="hlub" inputtag="board:UI" inputmask="0x200"><bounds x="1" y="11.5" width="8" height="2.5" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:UI" inputmask="0x100"><bounds x="1" y="15" width="8" height="2.5" /><color alpha="0.25" /></element> + + <!-- spawn --> + <element ref="text_uis1"><bounds x="0" y="20.5" width="10" height="2" /></element> + <element ref="cwhite"><bounds x="1" y="23" width="8" height="12" /></element> + <element ref="cwhite"><bounds x="1" y="36" width="8" height="12" /></element> + + <element name="piece_ui1" ref="piece"><bounds x="1" y="23" width="4" height="4" /></element> + <element name="piece_ui2" ref="piece"><bounds x="1" y="27" width="4" height="4" /></element> + <element name="piece_ui3" ref="piece"><bounds x="1" y="31" width="4" height="4" /></element> + <element name="piece_ui4" ref="piece"><bounds x="5" y="23" width="4" height="4" /></element> + <element name="piece_ui5" ref="piece"><bounds x="5" y="27" width="4" height="4" /></element> + <element name="piece_ui6" ref="piece"><bounds x="5" y="31" width="4" height="4" /></element> + <element name="piece_ui7" ref="piece"><bounds x="1" y="36" width="4" height="4" /></element> + <element name="piece_ui8" ref="piece"><bounds x="1" y="40" width="4" height="4" /></element> + <element name="piece_ui9" ref="piece"><bounds x="1" y="44" width="4" height="4" /></element> + <element name="piece_ui10" ref="piece"><bounds x="5" y="36" width="4" height="4" /></element> + <element name="piece_ui11" ref="piece"><bounds x="5" y="40" width="4" height="4" /></element> + <element name="piece_ui12" ref="piece"><bounds x="5" y="44" width="4" height="4" /></element> + + <element ref="hlub" inputtag="board:SPAWN" inputmask="0x0001"><bounds x="1" y="23" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:SPAWN" inputmask="0x0002"><bounds x="1" y="27" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:SPAWN" inputmask="0x0004"><bounds x="1" y="31" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:SPAWN" inputmask="0x0008"><bounds x="5" y="23" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:SPAWN" inputmask="0x0010"><bounds x="5" y="27" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:SPAWN" inputmask="0x0020"><bounds x="5" y="31" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:SPAWN" inputmask="0x0040"><bounds x="1" y="36" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:SPAWN" inputmask="0x0080"><bounds x="1" y="40" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:SPAWN" inputmask="0x0100"><bounds x="1" y="44" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:SPAWN" inputmask="0x0200"><bounds x="5" y="36" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:SPAWN" inputmask="0x0400"><bounds x="5" y="40" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:SPAWN" inputmask="0x0800"><bounds x="5" y="44" width="4" height="4" /><color alpha="0.25" /></element> + + <!-- hand --> + <element ref="text_uih1"><bounds x="0" y="51" width="10" height="2" /></element> + <element ref="cblack"><bounds x="1" y="53.5" width="8" height="6" /></element> + <element name="piece_ui0" ref="piece"><bounds x="2" y="53.5" width="6" height="6" /></element> + + <element ref="cwhite"><bounds x="1" y="60.5" width="8" height="2.5" /></element> + <element ref="text_uih2"><bounds x="1.5" y="60.75" width="7" height="2" /></element> + <element ref="hlub" inputtag="board:UI" inputmask="0x08"><bounds x="1" y="60.5" width="8" height="2.5" /><color alpha="0.25" /></element> + + <!-- undo --> + <element ref="text_uiu1"><bounds x="0" y="66" width="10" height="2" /></element> + <element ref="cwhite"><bounds x="1" y="68.5" width="1.7" height="6" /></element> + <element ref="cwhite"><bounds x="3.1" y="68.5" width="1.7" height="6" /></element> + <element ref="cwhite"><bounds x="5.2" y="68.5" width="1.7" height="6" /></element> + <element ref="cwhite"><bounds x="7.3" y="68.5" width="1.7" height="6" /></element> + <element ref="text_uiu2a"><bounds x="1" y="69.5" width="1.7" height="4" /></element> + <element ref="text_uiu2b"><bounds x="3.1" y="69.5" width="1.7" height="4" /></element> + <element ref="text_uiu2c"><bounds x="5.2" y="69.5" width="1.7" height="4" /></element> + <element ref="text_uiu2d"><bounds x="7.3" y="69.5" width="1.7" height="4" /></element> + + <element ref="hlub" inputtag="board:UI" inputmask="0x10"><bounds x="1" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:UI" inputmask="0x20"><bounds x="3.1" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:UI" inputmask="0x40"><bounds x="5.2" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:UI" inputmask="0x80"><bounds x="7.3" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element> + + <element name="count_ui0" ref="text_uiu3a"><bounds x="0" y="75" width="4" height="2" /></element> + <element name="count_ui1" ref="text_uiu3c"><bounds x="6" y="75" width="4" height="2" /></element> + <element ref="text_uiu3b"><bounds x="4" y="75" width="2" height="2" /></element> + </group> + + +<!-- build screen --> + + <view name="Internal Layout"> + <bounds left="-6.5" right="102.5" top="8.5" bottom="94.5" /> + + <group ref="sb_board"><bounds x="10" y="10" width="80" height="80" /></group> + <group ref="sb_ui"><bounds x="-5" y="10" width="10" height="80" /></group> + + <!-- chessboard leds --> + <element name="1.7" ref="led"><bounds x="7" y="14.25" width="1.5" height="1.5" /></element> + <element name="1.6" ref="led"><bounds x="7" y="24.25" width="1.5" height="1.5" /></element> + <element name="1.5" ref="led"><bounds x="7" y="34.25" width="1.5" height="1.5" /></element> + <element name="1.4" ref="led"><bounds x="7" y="44.25" width="1.5" height="1.5" /></element> + <element name="1.3" ref="led"><bounds x="7" y="54.25" width="1.5" height="1.5" /></element> + <element name="1.2" ref="led"><bounds x="7" y="64.25" width="1.5" height="1.5" /></element> + <element name="1.1" ref="led"><bounds x="7" y="74.25" width="1.5" height="1.5" /></element> + <element name="1.0" ref="led"><bounds x="7" y="84.25" width="1.5" height="1.5" /></element> + + <element name="0.0" ref="led"><bounds x="14.25" y="91.5" width="1.5" height="1.5" /></element> + <element name="0.1" ref="led"><bounds x="24.25" y="91.5" width="1.5" height="1.5" /></element> + <element name="0.2" ref="led"><bounds x="34.25" y="91.5" width="1.5" height="1.5" /></element> + <element name="0.3" ref="led"><bounds x="44.25" y="91.5" width="1.5" height="1.5" /></element> + <element name="0.4" ref="led"><bounds x="54.25" y="91.5" width="1.5" height="1.5" /></element> + <element name="0.5" ref="led"><bounds x="64.25" y="91.5" width="1.5" height="1.5" /></element> + <element name="0.6" ref="led"><bounds x="74.25" y="91.5" width="1.5" height="1.5" /></element> + <element name="0.7" ref="led"><bounds x="84.25" y="91.5" width="1.5" height="1.5" /></element> + + <!-- button panel --> + <element ref="text_p1"><bounds x="91" y="61.5" width="3" height="3" /></element> + <element ref="text_p2"><bounds x="91" y="66.5" width="3" height="3" /></element> + <element ref="text_p3"><bounds x="91" y="71.5" width="3" height="3" /></element> + <element ref="text_p4"><bounds x="91" y="76.5" width="3" height="3" /></element> + <element ref="text_p5"><bounds x="91" y="81.5" width="3" height="3" /></element> + <element ref="text_p6"><bounds x="91" y="86.5" width="3" height="3" /></element> + <element ref="cwhite" blend="multiply"><bounds x="90.5" y="61" width="4" height="30" /></element> + + <element ref="cwhite"><bounds x="91.5" y="50" width="9.5" height="4" /></element> + <element ref="cwhite"><bounds x="91.5" y="55" width="9.5" height="4" /></element> + + <element ref="text_l1a"><bounds x="91.5" y="50.5" width="9.5" height="1.5" /></element> + <element ref="text_l1b"><bounds x="91.5" y="52.0" width="9.5" height="1.5" /></element> + <element ref="text_l2"><bounds x="91.5" y="56.25" width="9.5" height="1.5" /></element> + + <element ref="cwhite"><bounds x="95" y="61" width="6" height="4" /></element> + <element ref="cwhite"><bounds x="95" y="66" width="6" height="4" /></element> + <element ref="cwhite"><bounds x="95" y="71" width="6" height="4" /></element> + <element ref="cwhite"><bounds x="95" y="76" width="6" height="4" /></element> + <element ref="cwhite"><bounds x="95" y="81" width="6" height="4" /></element> + <element ref="cwhite"><bounds x="95" y="86" width="6" height="4" /></element> + + <element ref="text_l3"><bounds x="95" y="62.25" width="6" height="1.5" /></element> + <element ref="text_l4"><bounds x="95" y="67.25" width="6" height="1.5" /></element> + <element ref="text_l5"><bounds x="95" y="72.25" width="6" height="1.5" /></element> + <element ref="text_l6"><bounds x="95" y="77.25" width="6" height="1.5" /></element> + <element ref="text_l7"><bounds x="95" y="82.25" width="6" height="1.5" /></element> + <element ref="text_l8"><bounds x="95" y="87.25" width="6" height="1.5" /></element> + + <element ref="hlb" inputtag="IN.0" inputmask="0x80"><bounds x="91.5" y="50" width="9.5" height="4" /><color alpha="0.2" /></element> + <element ref="hlb" inputtag="IN.0" inputmask="0x40"><bounds x="91.5" y="55" width="9.5" height="4" /><color alpha="0.2" /></element> + <element ref="hlb" inputtag="IN.0" inputmask="0x20"><bounds x="95" y="61" width="6" height="4" /><color alpha="0.2" /></element> + <element ref="hlb" inputtag="IN.0" inputmask="0x10"><bounds x="95" y="66" width="6" height="4" /><color alpha="0.2" /></element> + <element ref="hlb" inputtag="IN.0" inputmask="0x08"><bounds x="95" y="71" width="6" height="4" /><color alpha="0.2" /></element> + <element ref="hlb" inputtag="IN.0" inputmask="0x04"><bounds x="95" y="76" width="6" height="4" /><color alpha="0.2" /></element> + <element ref="hlb" inputtag="IN.0" inputmask="0x02"><bounds x="95" y="81" width="6" height="4" /><color alpha="0.2" /></element> + <element ref="hlb" inputtag="IN.0" inputmask="0x01"><bounds x="95" y="86" width="6" height="4" /><color alpha="0.2" /></element> + + </view> +</mamelayout> diff --git a/src/mame/mame.lst b/src/mame/mame.lst index fdf9c18ec12..7ca46db3f7f 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -13840,6 +13840,9 @@ fex68km2a // fex68km3 // fex68km4 // +@source:fidel_eldorado.cpp +feldo + @source:fidel_elite.cpp feas // feasbu // diff --git a/src/mame/mess.flt b/src/mame/mess.flt index 7d9aea655c1..b337a78c750 100644 --- a/src/mame/mess.flt +++ b/src/mame/mess.flt @@ -319,6 +319,7 @@ fidel_csc.cpp fidel_dames.cpp fidel_desdis.cpp fidel_eag68k.cpp +fidel_eldorado.cpp fidel_elite.cpp fidel_excel.cpp fidel_msc.cpp |