mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
New working systems
------------------- Mentor 16 [hap, Berger]
This commit is contained in:
parent
a994640d0d
commit
385f19feb7
@ -2388,6 +2388,8 @@ void hd6301x_cpu_device::tcsr3_w(u8 data)
|
||||
m_port2_written = true;
|
||||
write_port2();
|
||||
}
|
||||
|
||||
check_irq2();
|
||||
}
|
||||
|
||||
|
||||
|
@ -7,6 +7,7 @@ authors:hap
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="gray"><rect><color red="0.51" green="0.5" blue="0.49" /></rect></element>
|
||||
<element name="red"><rect><color red="0.7" green="0.13" blue="0.12" /></rect></element>
|
||||
<element name="white"><rect><color red="0.81" green="0.8" blue="0.79" /></rect></element>
|
||||
<element name="lcd_bg"><rect><color red="0.54" green="0.57" blue="0.58" /></rect></element>
|
||||
@ -431,8 +432,8 @@ authors:hap
|
||||
<element name="digit12" ref="digit"><bounds x="104.125" y="9" width="2" height="3" /></element>
|
||||
<element name="digit13" ref="digit"><bounds x="106.125" y="9" width="2" height="3" /></element>
|
||||
|
||||
<element ref="text_l7"><bounds x="86" y="68.64" width="14" height="1.4" /></element>
|
||||
<element ref="text_l8"><bounds x="86" y="76.35" width="14" height="1.4" /></element>
|
||||
<element ref="text_l7"><bounds x="86" yc="69.31" width="14" height="1.4" /></element>
|
||||
<element ref="text_l8"><bounds x="86" yc="77.02" width="14" height="1.4" /></element>
|
||||
|
||||
<element name="0.6" ref="ledg"><bounds x="86" y="71.29" width="1" height="2" /></element>
|
||||
<element name="0.7" ref="ledg"><bounds x="86" y="79.00" width="1" height="2" /></element>
|
||||
@ -472,19 +473,37 @@ authors:hap
|
||||
<element ref="white"><bounds x="101.4" y="70.44" width="5.7" height="3.7" /></element>
|
||||
<element ref="red"><bounds x="101.4" y="78.15" width="5.7" height="3.7" /></element>
|
||||
|
||||
<element ref="text_p1" blend="multiply"><bounds x="93.18" y="24.50" width="2.9" height="2.9" /></element>
|
||||
<element ref="text_p2" blend="multiply"><bounds x="93.18" y="32.21" width="2.9" height="2.9" /></element>
|
||||
<element ref="text_p3" blend="multiply"><bounds x="93.18" y="39.93" width="2.9" height="2.9" /></element>
|
||||
<element ref="text_p4" blend="multiply"><bounds x="93.18" y="47.64" width="2.9" height="2.9" /></element>
|
||||
<element ref="text_p5" blend="multiply"><bounds x="93.18" y="55.36" width="2.9" height="2.9" /></element>
|
||||
<element ref="text_p6" blend="multiply"><bounds x="93.18" y="63.07" width="2.9" height="2.9" /></element>
|
||||
<repeat count="9">
|
||||
<param name="y" start="22.2" increment="7.71" />
|
||||
<element ref="gray"><bounds x="86" yc="~y~" width="23" height="0.1" /></element>
|
||||
</repeat>
|
||||
|
||||
<repeat count="8">
|
||||
<param name="y" start="23.05" increment="7.71" />
|
||||
<param name="i" start="1" increment="1" />
|
||||
<element ref="text_m~i~a"><bounds x="87.63" yc="~y~" width="14" height="1.4" /></element>
|
||||
<element ref="text_r~i~a"><bounds x="97.25" yc="~y~" width="14" height="1.4" /></element>
|
||||
</repeat>
|
||||
|
||||
<repeat count="8">
|
||||
<param name="y" start="28.90" increment="7.71" />
|
||||
<param name="i" start="1" increment="1" />
|
||||
<element ref="text_m~i~b"><bounds x="87.63" yc="~y~" width="14" height="1.4" /></element>
|
||||
<element ref="text_r~i~b"><bounds x="97.25" yc="~y~" width="14" height="1.4" /></element>
|
||||
</repeat>
|
||||
|
||||
<repeat count="6">
|
||||
<param name="y" start="25.95" increment="7.71" />
|
||||
<param name="i" start="1" increment="1" />
|
||||
<element ref="text_p~i~" blend="multiply"><bounds xc="94.63" yc="~y~" width="2.9" height="2.9" /></element>
|
||||
</repeat>
|
||||
|
||||
<repeat count="6">
|
||||
<param name="y" start="33.71" increment="7.71" />
|
||||
<param name="i" start="2" increment="1" />
|
||||
<element ref="text_r~i~x"><bounds x="101.4" yc="~y~" width="5.7" height="1.4" /></element>
|
||||
</repeat>
|
||||
|
||||
<element ref="text_r2x"><bounds x="101.4" y="33.01" width="5.7" height="1.4" /></element>
|
||||
<element ref="text_r3x"><bounds x="101.4" y="40.73" width="5.7" height="1.4" /></element>
|
||||
<element ref="text_r4x"><bounds x="101.4" y="48.44" width="5.7" height="1.4" /></element>
|
||||
<element ref="text_r5x"><bounds x="101.4" y="56.16" width="5.7" height="1.4" /></element>
|
||||
<element ref="text_r6x"><bounds x="101.4" y="63.87" width="5.7" height="1.4" /></element>
|
||||
<element ref="text_r7x"><bounds x="101.4" y="71.59" width="5.7" height="1.4" /></element>
|
||||
<element ref="text_r8x"><bounds x="101.4" y="78.30" width="5.7" height="3" /></element>
|
||||
<element ref="text_m8x"><bounds x="91.78" y="78.30" width="5.7" height="3" /></element>
|
||||
|
||||
@ -506,39 +525,5 @@ authors:hap
|
||||
<element ref="hlb" inputtag="IN.6" inputmask="0x01"><bounds x="101.25" y="70.29" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.7" inputmask="0x01"><bounds x="101.25" y="78.00" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
|
||||
<element ref="text_m1a"><bounds x="87.63" y="22.35" width="14" height="1.4" /></element>
|
||||
<element ref="text_m1b"><bounds x="87.63" y="28.20" width="14" height="1.4" /></element>
|
||||
<element ref="text_m2a"><bounds x="87.63" y="30.06" width="14" height="1.4" /></element>
|
||||
<element ref="text_m2b"><bounds x="87.63" y="35.91" width="14" height="1.4" /></element>
|
||||
<element ref="text_m3a"><bounds x="87.63" y="37.78" width="14" height="1.4" /></element>
|
||||
<element ref="text_m3b"><bounds x="87.63" y="43.63" width="14" height="1.4" /></element>
|
||||
<element ref="text_m4a"><bounds x="87.63" y="45.49" width="14" height="1.4" /></element>
|
||||
<element ref="text_m4b"><bounds x="87.63" y="51.34" width="14" height="1.4" /></element>
|
||||
<element ref="text_m5a"><bounds x="87.63" y="53.21" width="14" height="1.4" /></element>
|
||||
<element ref="text_m5b"><bounds x="87.63" y="59.06" width="14" height="1.4" /></element>
|
||||
<element ref="text_m6a"><bounds x="87.63" y="60.92" width="14" height="1.4" /></element>
|
||||
<element ref="text_m6b"><bounds x="87.63" y="66.77" width="14" height="1.4" /></element>
|
||||
<element ref="text_m7a"><bounds x="87.63" y="68.64" width="14" height="1.4" /></element>
|
||||
<element ref="text_m7b"><bounds x="87.63" y="74.49" width="14" height="1.4" /></element>
|
||||
<element ref="text_m8a"><bounds x="87.63" y="76.35" width="14" height="1.4" /></element>
|
||||
<element ref="text_m8b"><bounds x="87.63" y="82.20" width="14" height="1.4" /></element>
|
||||
|
||||
<element ref="text_r1a"><bounds x="97.25" y="22.35" width="14" height="1.4" /></element>
|
||||
<element ref="text_r1b"><bounds x="97.25" y="28.20" width="14" height="1.4" /></element>
|
||||
<element ref="text_r2a"><bounds x="97.25" y="30.06" width="14" height="1.4" /></element>
|
||||
<element ref="text_r2b"><bounds x="97.25" y="35.91" width="14" height="1.4" /></element>
|
||||
<element ref="text_r3a"><bounds x="97.25" y="37.78" width="14" height="1.4" /></element>
|
||||
<element ref="text_r3b"><bounds x="97.25" y="43.63" width="14" height="1.4" /></element>
|
||||
<element ref="text_r4a"><bounds x="97.25" y="45.49" width="14" height="1.4" /></element>
|
||||
<element ref="text_r4b"><bounds x="97.25" y="51.34" width="14" height="1.4" /></element>
|
||||
<element ref="text_r5a"><bounds x="97.25" y="53.21" width="14" height="1.4" /></element>
|
||||
<element ref="text_r5b"><bounds x="97.25" y="59.06" width="14" height="1.4" /></element>
|
||||
<element ref="text_r6a"><bounds x="97.25" y="60.92" width="14" height="1.4" /></element>
|
||||
<element ref="text_r6b"><bounds x="97.25" y="66.77" width="14" height="1.4" /></element>
|
||||
<element ref="text_r7a"><bounds x="97.25" y="68.64" width="14" height="1.4" /></element>
|
||||
<element ref="text_r7b"><bounds x="97.25" y="74.49" width="14" height="1.4" /></element>
|
||||
<element ref="text_r8a"><bounds x="97.25" y="76.35" width="14" height="1.4" /></element>
|
||||
<element ref="text_r8b"><bounds x="97.25" y="82.20" width="14" height="1.4" /></element>
|
||||
|
||||
</view>
|
||||
</mamelayout>
|
||||
|
@ -327,47 +327,47 @@ authors:hap
|
||||
<!-- build screen -->
|
||||
|
||||
<view name="Internal Layout">
|
||||
<bounds left="-16" right="99.5" top="0" bottom="88" />
|
||||
<bounds left="-14.5" right="99.5" top="0" bottom="88" />
|
||||
|
||||
<element ref="cblack"><bounds x="3" y="3" width="90" height="80" /></element>
|
||||
<group ref="sb_board"><bounds x="3" y="3" width="80" height="80" /></group>
|
||||
<group ref="sb_ui"><bounds x="-14.5" y="3" width="10" height="80" /></group>
|
||||
<group ref="sb_ui"><bounds x="-13" y="3" width="10" height="80" /></group>
|
||||
|
||||
<!-- chessboard coords -->
|
||||
<element ref="text_8"><bounds x="-1.75" y="9" width="2" height="2" /></element>
|
||||
<element ref="text_7"><bounds x="-1.75" y="19" width="2" height="2" /></element>
|
||||
<element ref="text_6"><bounds x="-1.75" y="29" width="2" height="2" /></element>
|
||||
<element ref="text_5"><bounds x="-1.75" y="39" width="2" height="2" /></element>
|
||||
<element ref="text_4"><bounds x="-1.75" y="49" width="2" height="2" /></element>
|
||||
<element ref="text_3"><bounds x="-1.75" y="59" width="2" height="2" /></element>
|
||||
<element ref="text_2"><bounds x="-1.75" y="69" width="2" height="2" /></element>
|
||||
<element ref="text_1"><bounds x="-1.75" y="79" width="2" height="2" /></element>
|
||||
<element ref="text_8"><bounds xc="0" y="9" width="2" height="1.5" /></element>
|
||||
<element ref="text_7"><bounds xc="0" y="19" width="2" height="1.5" /></element>
|
||||
<element ref="text_6"><bounds xc="0" y="29" width="2" height="1.5" /></element>
|
||||
<element ref="text_5"><bounds xc="0" y="39" width="2" height="1.5" /></element>
|
||||
<element ref="text_4"><bounds xc="0" y="49" width="2" height="1.5" /></element>
|
||||
<element ref="text_3"><bounds xc="0" y="59" width="2" height="1.5" /></element>
|
||||
<element ref="text_2"><bounds xc="0" y="69" width="2" height="1.5" /></element>
|
||||
<element ref="text_1"><bounds xc="0" y="79" width="2" height="1.5" /></element>
|
||||
|
||||
<element ref="text_l1"><bounds x="-5" y="74.75" width="8" height="2" /></element>
|
||||
<element ref="text_l2"><bounds x="-5" y="64.75" width="8" height="2" /></element>
|
||||
<element ref="text_l3"><bounds x="-5" y="54.75" width="8" height="2" /></element>
|
||||
<element ref="text_l7"><bounds x="-5" y="14.75" width="8" height="2" /></element>
|
||||
<element ref="text_l1"><bounds xc="0" y="75.25" width="8" height="1.5" /></element>
|
||||
<element ref="text_l2"><bounds xc="0" y="65.25" width="8" height="1.5" /></element>
|
||||
<element ref="text_l3"><bounds xc="0" y="55.25" width="8" height="1.5" /></element>
|
||||
<element ref="text_l7"><bounds xc="0" y="15.25" width="8" height="1.5" /></element>
|
||||
|
||||
<element ref="text_a"><bounds x="8" y="83.75" width="2" height="2" /></element>
|
||||
<element ref="text_b"><bounds x="18" y="83.75" width="2" height="2" /></element>
|
||||
<element ref="text_c"><bounds x="28" y="83.75" width="2" height="2" /></element>
|
||||
<element ref="text_d"><bounds x="38" y="83.75" width="2" height="2" /></element>
|
||||
<element ref="text_e"><bounds x="48" y="83.75" width="2" height="2" /></element>
|
||||
<element ref="text_f"><bounds x="58" y="83.75" width="2" height="2" /></element>
|
||||
<element ref="text_g"><bounds x="68" y="83.75" width="2" height="2" /></element>
|
||||
<element ref="text_h"><bounds x="78" y="83.75" width="2" height="2" /></element>
|
||||
<element ref="text_a"><bounds x="8" y="84.1" width="2" height="1.5" /></element>
|
||||
<element ref="text_b"><bounds x="18" y="84.1" width="2" height="1.5" /></element>
|
||||
<element ref="text_c"><bounds x="28" y="84.1" width="2" height="1.5" /></element>
|
||||
<element ref="text_d"><bounds x="38" y="84.1" width="2" height="1.5" /></element>
|
||||
<element ref="text_e"><bounds x="48" y="84.1" width="2" height="1.5" /></element>
|
||||
<element ref="text_f"><bounds x="58" y="84.1" width="2" height="1.5" /></element>
|
||||
<element ref="text_g"><bounds x="68" y="84.1" width="2" height="1.5" /></element>
|
||||
<element ref="text_h"><bounds x="78" y="84.1" width="2" height="1.5" /></element>
|
||||
|
||||
<!-- chessboard leds -->
|
||||
<element name="2.7" ref="ledr"><bounds x="-1.5" y="7.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.6" ref="ledr"><bounds x="-1.5" y="17.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.5" ref="ledr"><bounds x="-1.5" y="27.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.4" ref="ledr"><bounds x="-1.5" y="37.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.3" ref="ledr"><bounds x="-1.5" y="47.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.2" ref="ledr"><bounds x="-1.5" y="57.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.1" ref="ledr"><bounds x="-1.5" y="67.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.0" ref="ledr"><bounds x="-1.5" y="77.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.7" ref="ledr"><bounds xc="0" y="7.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.6" ref="ledr"><bounds xc="0" y="17.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.5" ref="ledr"><bounds xc="0" y="27.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.4" ref="ledr"><bounds xc="0" y="37.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.3" ref="ledr"><bounds xc="0" y="47.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.2" ref="ledr"><bounds xc="0" y="57.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.1" ref="ledr"><bounds xc="0" y="67.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.0" ref="ledr"><bounds xc="0" y="77.25" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element name="1.0" ref="ledr"><bounds x="6" y="84" width="1.5" height="1.5" /></element>
|
||||
<element name="1.0" ref="ledr"><bounds x="6" y="84" width="1.5" height="1.5" /></element>
|
||||
<element name="1.1" ref="ledr"><bounds x="16" y="84" width="1.5" height="1.5" /></element>
|
||||
<element name="1.2" ref="ledr"><bounds x="26" y="84" width="1.5" height="1.5" /></element>
|
||||
<element name="1.3" ref="ledr"><bounds x="36" y="84" width="1.5" height="1.5" /></element>
|
||||
|
516
src/mame/layout/novag_mentor16.lay
Normal file
516
src/mame/layout/novag_mentor16.lay
Normal file
@ -0,0 +1,516 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
license:CC0-1.0
|
||||
authors:hap
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="red"><rect><color red="0.6" green="0.12" blue="0.10" /></rect></element>
|
||||
<element name="blackb"><rect><color red="0" green="0" blue="0" /></rect></element>
|
||||
<element name="white"><rect><color red="0.81" green="0.8" blue="0.79" /></rect></element>
|
||||
|
||||
<element name="ledr" defstate="0">
|
||||
<disk state="1"><color red="1.0" green="0.1" blue="0.15" /></disk>
|
||||
<disk state="0"><color red="0.17" green="0.015" blue="0.02" /></disk>
|
||||
</element>
|
||||
<element name="ledg" defstate="0">
|
||||
<disk state="1"><color red="0.1" green="0.95" blue="0.05" /></disk>
|
||||
<disk state="0"><color red="0.015" green="0.16" blue="0.01" /></disk>
|
||||
</element>
|
||||
|
||||
<element name="hlb" defstate="0">
|
||||
<rect state="1"><color red="0" green="0" blue="0" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_1"><text string="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_2"><text string="2"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_3"><text string="3"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_4"><text string="4"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_5"><text string="5"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_6"><text string="6"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_7"><text string="7"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_8"><text string="8"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
|
||||
<element name="text_a"><text string="A"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_b"><text string="B"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_c"><text string="C"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_d"><text string="D"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_e"><text string="E"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_f"><text string="F"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_g"><text string="G"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_h"><text string="H"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
|
||||
<element name="text_l1"><text string="Mate" align="2"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_l2"><text string="Stale" align="2"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_l3"><text string="Check" align="2"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_l7"><text string="Error" align="2"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
|
||||
<element name="text_r1"><text string="Verify" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_r2"><text string="Set Up" align="1"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
|
||||
<element name="text_p1"><rect><color red="1" green="1" blue="1" /></rect><image file="chess/bk.svg" /><rect><color red="1" green="1" blue="1" alpha="0.12" /></rect></element>
|
||||
<element name="text_p2"><rect><color red="1" green="1" blue="1" /></rect><image file="chess/bq.svg" /><rect><color red="1" green="1" blue="1" alpha="0.12" /></rect></element>
|
||||
<element name="text_p3"><rect><color red="1" green="1" blue="1" /></rect><image file="chess/bb.svg" /><rect><color red="1" green="1" blue="1" alpha="0.12" /></rect></element>
|
||||
<element name="text_p4"><rect><color red="1" green="1" blue="1" /></rect><image file="chess/bn.svg" /><rect><color red="1" green="1" blue="1" alpha="0.12" /></rect></element>
|
||||
<element name="text_p5"><rect><color red="1" green="1" blue="1" /></rect><image file="chess/br.svg" /><rect><color red="1" green="1" blue="1" alpha="0.12" /></rect></element>
|
||||
<element name="text_p6"><rect><color red="1" green="1" blue="1" /></rect><image file="chess/bp.svg" /><rect><color red="1" green="1" blue="1" alpha="0.12" /></rect></element>
|
||||
|
||||
<element name="text_rb00"><text string="Player/Player"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb01"><text string="Random"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb02"><text string="Sound"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb03"><text string="Solve Mate"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb04"><text string="Depth Search"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb05"><text string="Autoplay"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb06"><text string="Set Level"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb07"><text string="Take Back"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
|
||||
<element name="text_rb10"><text string="New Game"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb11"><text string="Set Up"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb12"><text string="Verify"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb13"><text string="Change Color"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb14"><text string="Clear Board"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb15"><text string="Acc. Time"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb16"><text string="Move Time"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb17"><text string="Hint"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb18"><text string="Show Moves"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb19"><text string="Go"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
|
||||
|
||||
<!-- sb board -->
|
||||
|
||||
<element name="cblack"><rect><color red="0.41" green="0.4" blue="0.39" /></rect></element>
|
||||
<element name="cwhite"><rect><color red="0.81" green="0.8" blue="0.79" /></rect></element>
|
||||
|
||||
<element name="hlbb" defstate="0">
|
||||
<text string=" "><bounds x="0" y="0" width="1" height="1" /></text>
|
||||
<disk state="1">
|
||||
<bounds x="0.12" y="0.12" width="0.76" height="0.76" />
|
||||
<color red="0" green="0" blue="0" />
|
||||
</disk>
|
||||
</element>
|
||||
|
||||
<element name="piece" defstate="0">
|
||||
<image file="chess/wp.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>
|
||||
|
||||
<!-- 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"><text string="RESET"><color red="0.01" green="0.01" blue="0.01" /></text></element>
|
||||
<element name="text_uib3"><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"><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"><text string=" <<"><color red="0.01" green="0.01" blue="0.01" /></text></element>
|
||||
<element name="text_uiu2b"><text string=" < "><color red="0.01" green="0.01" blue="0.01" /></text></element>
|
||||
<element name="text_uiu2c"><text string=" >"><color red="0.01" green="0.01" blue="0.01" /></text></element>
|
||||
<element name="text_uiu2d"><text string=" >>"><color red="0.01" green="0.01" blue="0.01" /></text></element>
|
||||
<element name="text_uiu3b"><text string="/"><color red="0.81" green="0.8" blue="0.79" /></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_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>
|
||||
|
||||
|
||||
<!-- lcd panels -->
|
||||
|
||||
<element name="lcd_bg"><rect><color red="0.54" green="0.57" blue="0.58" /></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.2" green="0.16" blue="0.16" alpha="0.125" /></rect>
|
||||
</element>
|
||||
|
||||
<element name="text_white"><text string="White"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
<element name="text_black"><text string="Black"><color red="0.9" green="0.9" blue="0.9" /></text></element>
|
||||
|
||||
<group name="lcd1">
|
||||
<element ref="lcd_bg"><bounds xc="11" yc="3" width="21.5" height="9" /></element>
|
||||
|
||||
<element name="digit0" ref="digit"><bounds x="1.75" yc="3" width="4" height="6.25" /></element>
|
||||
<element name="digit1" ref="digit"><bounds x="6" yc="3" width="4" height="6.25" /></element>
|
||||
<element name="digit2" ref="digit"><bounds x="12" yc="3" width="4" height="6.25" /></element>
|
||||
<element name="digit3" ref="digit"><bounds x="16.25" yc="3" width="4" height="6.25" /></element>
|
||||
|
||||
<element name="s3.3" ref="ldot"><bounds x="10.91" y="1.8" width="0.6" height="0.6" /></element>
|
||||
<element name="s3.3" ref="ldot"><bounds x="10.69" y="3.65" width="0.6" height="0.6" /></element>
|
||||
</group>
|
||||
|
||||
<group name="lcd2">
|
||||
<element ref="lcd_bg"><bounds xc="11" yc="3" width="21.5" height="9" /></element>
|
||||
|
||||
<element name="digit4" ref="digit"><bounds x="1.75" yc="3" width="4" height="6.25" /></element>
|
||||
<element name="digit5" ref="digit"><bounds x="6" yc="3" width="4" height="6.25" /></element>
|
||||
<element name="digit6" ref="digit"><bounds x="12" yc="3" width="4" height="6.25" /></element>
|
||||
<element name="digit7" ref="digit"><bounds x="16.25" yc="3" width="4" height="6.25" /></element>
|
||||
|
||||
<element name="s3.11" ref="ldot"><bounds x="10.91" y="1.8" width="0.6" height="0.6" /></element>
|
||||
<element name="s3.11" ref="ldot"><bounds x="10.69" y="3.65" width="0.6" height="0.6" /></element>
|
||||
</group>
|
||||
|
||||
|
||||
<!-- build screen -->
|
||||
|
||||
<view name="Internal Layout">
|
||||
<bounds left="-12.5" right="112" top="0.5" bottom="106" />
|
||||
|
||||
<element ref="red"><bounds x="4" y="2.5" width="102.5" height="81" /></element>
|
||||
<element ref="blackb"><bounds x="85" y="3" width="21" height="80" /></element>
|
||||
<group ref="sb_board"><bounds x="4.5" y="3" width="80" height="80" /></group>
|
||||
|
||||
<group ref="sb_ui"><bounds x="-11" y="3" width="10" height="80" /></group>
|
||||
|
||||
<!-- chessboard coords -->
|
||||
<element ref="text_8"><bounds x="1.25" y="9" width="2" height="1.5" /></element>
|
||||
<element ref="text_7"><bounds x="1.25" y="19" width="2" height="1.5" /></element>
|
||||
<element ref="text_6"><bounds x="1.25" y="29" width="2" height="1.5" /></element>
|
||||
<element ref="text_5"><bounds x="1.25" y="39" width="2" height="1.5" /></element>
|
||||
<element ref="text_4"><bounds x="1.25" y="49" width="2" height="1.5" /></element>
|
||||
<element ref="text_3"><bounds x="1.25" y="59" width="2" height="1.5" /></element>
|
||||
<element ref="text_2"><bounds x="1.25" y="69" width="2" height="1.5" /></element>
|
||||
<element ref="text_1"><bounds x="1.25" y="79" width="2" height="1.5" /></element>
|
||||
|
||||
<element ref="text_l1"><bounds x="-1.8" y="75.25" width="5" height="1.5" /></element>
|
||||
<element ref="text_l2"><bounds x="-1.8" y="65.25" width="5" height="1.5" /></element>
|
||||
<element ref="text_l3"><bounds x="-1.8" y="55.25" width="5" height="1.5" /></element>
|
||||
<element ref="text_l7"><bounds x="-1.8" y="15.25" width="5" height="1.5" /></element>
|
||||
|
||||
<element ref="text_a"><bounds x="10" y="84.6" width="2" height="1.5" /></element>
|
||||
<element ref="text_b"><bounds x="20" y="84.6" width="2" height="1.5" /></element>
|
||||
<element ref="text_c"><bounds x="30" y="84.6" width="2" height="1.5" /></element>
|
||||
<element ref="text_d"><bounds x="40" y="84.6" width="2" height="1.5" /></element>
|
||||
<element ref="text_e"><bounds x="50" y="84.6" width="2" height="1.5" /></element>
|
||||
<element ref="text_f"><bounds x="60" y="84.6" width="2" height="1.5" /></element>
|
||||
<element ref="text_g"><bounds x="70" y="84.6" width="2" height="1.5" /></element>
|
||||
<element ref="text_h"><bounds x="80" y="84.6" width="2" height="1.5" /></element>
|
||||
|
||||
<!-- chessboard leds -->
|
||||
<element name="0.7" ref="ledr"><bounds x="1.5" y="7.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.6" ref="ledr"><bounds x="1.5" y="17.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.5" ref="ledr"><bounds x="1.5" y="27.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.4" ref="ledr"><bounds x="1.5" y="37.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.3" ref="ledr"><bounds x="1.5" y="47.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.2" ref="ledr"><bounds x="1.5" y="57.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.1" ref="ledr"><bounds x="1.5" y="67.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.0" ref="ledr"><bounds x="1.5" y="77.25" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element name="1.0" ref="ledr"><bounds x="8.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.1" ref="ledr"><bounds x="18.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.2" ref="ledr"><bounds x="28.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.3" ref="ledr"><bounds x="38.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.4" ref="ledr"><bounds x="48.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.5" ref="ledr"><bounds x="58.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.6" ref="ledr"><bounds x="68.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.7" ref="ledr"><bounds x="78.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
|
||||
<!-- right side leds -->
|
||||
<element name="2.1" ref="ledg"><bounds xc="91" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="2.0" ref="ledr"><bounds xc="100" y="84.5" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element name="2.2" ref="ledr"><bounds x="107.5" y="77.25" width="1.5" height="1.5" /></element>
|
||||
<element name="2.3" ref="ledr"><bounds x="107.5" y="67.25" width="1.5" height="1.5" /></element>
|
||||
<element ref="text_r1"><bounds x="107.4" y="75.25" width="5" height="1.5" /></element>
|
||||
<element ref="text_r2"><bounds x="107.4" y="65.25" width="5" height="1.5" /></element>
|
||||
|
||||
<!-- lcd panels -->
|
||||
<element ref="text_black"><bounds xc="91" y="88.25" width="5" height="1.5" /></element>
|
||||
<group ref="lcd1"><bounds xc="91" y="90" width="10" height="4.186" /></group>
|
||||
<group ref="lcd2"><bounds xc="91" y="98" width="10" height="4.186" /></group>
|
||||
<element ref="text_white"><bounds xc="91" y="102.336" width="5" height="1.5" /></element>
|
||||
|
||||
<!-- right side buttons -->
|
||||
<element ref="text_rb00"><bounds x="84" y="4.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb01"><bounds x="84" y="14.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb02"><bounds x="84" y="24.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb03"><bounds x="84" y="34.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb04"><bounds x="84" y="44.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb05"><bounds x="84" y="54.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb06"><bounds x="84" y="64.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb07"><bounds x="84" y="74.2" width="14" height="1.5" /></element>
|
||||
|
||||
<element ref="text_rb10"><bounds x="93" y="4.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb11"><bounds x="93" y="14.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb12"><bounds x="93" y="20.3" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb13"><bounds x="93" y="24.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb14"><bounds x="93" y="34.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb15"><bounds x="93" y="44.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb16"><bounds x="93" y="54.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb17"><bounds x="93" y="64.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb18"><bounds x="93" y="70.3" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb19"><bounds x="93" y="74.2" width="14" height="1.5" /></element>
|
||||
|
||||
<element ref="white"><bounds x="88" y="6" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="88" y="16" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="88" y="26" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="88" y="36" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="88" y="46" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="88" y="56" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="88" y="66" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="88" y="76" width="6" height="4" /></element>
|
||||
|
||||
<element ref="text_p1" blend="multiply"><bounds x="89.55" y="6.45" width="2.9" height="2.9" /></element>
|
||||
<element ref="text_p2" blend="multiply"><bounds x="89.55" y="16.45" width="2.9" height="2.9" /></element>
|
||||
<element ref="text_p3" blend="multiply"><bounds x="89.55" y="26.45" width="2.9" height="2.9" /></element>
|
||||
<element ref="text_p4" blend="multiply"><bounds x="89.55" y="36.45" width="2.9" height="2.9" /></element>
|
||||
<element ref="text_p5" blend="multiply"><bounds x="89.55" y="46.45" width="2.9" height="2.9" /></element>
|
||||
<element ref="text_p6" blend="multiply"><bounds x="89.55" y="56.45" width="2.9" height="2.9" /></element>
|
||||
|
||||
<element ref="hlb" inputtag="IN.0" inputmask="0x80"><bounds x="88" y="6" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.0" inputmask="0x40"><bounds x="88" y="16" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.0" inputmask="0x20"><bounds x="88" y="26" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.0" inputmask="0x10"><bounds x="88" y="36" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.0" inputmask="0x08"><bounds x="88" y="46" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.0" inputmask="0x04"><bounds x="88" y="56" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.0" inputmask="0x02"><bounds x="88" y="66" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.0" inputmask="0x01"><bounds x="88" y="76" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
|
||||
<element ref="white"><bounds x="97" y="6" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="97" y="16" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="97" y="26" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="97" y="36" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="97" y="46" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="97" y="56" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="97" y="66" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="97" y="76" width="6" height="4" /></element>
|
||||
<element ref="red"><bounds x="97.15" y="6.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="red"><bounds x="97.15" y="76.15" width="5.7" height="3.7" /></element>
|
||||
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x80"><bounds x="97" y="6" width="6" height="4" /><color alpha="0.20" /></element>
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x40"><bounds x="97" y="16" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x20"><bounds x="97" y="26" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x10"><bounds x="97" y="36" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x08"><bounds x="97" y="46" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x04"><bounds x="97" y="56" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x02"><bounds x="97" y="66" width="6" height="4" /><color alpha="0.15" /></element>
|
||||
<element ref="hlb" inputtag="IN.1" inputmask="0x01"><bounds x="97" y="76" width="6" height="4" /><color alpha="0.20" /></element>
|
||||
|
||||
</view>
|
||||
</mamelayout>
|
@ -10,6 +10,7 @@ authors:hap
|
||||
<element name="lcdw"><rect><color red="1" green="1" blue="1" /></rect></element>
|
||||
<element name="lcdm"><rect><color red="0.36" green="0.42" blue="0.42" /></rect></element>
|
||||
<element name="lcda"><rect><color red="0.20" green="0.16" blue="0.17" /></rect></element>
|
||||
<element name="gray"><rect><color red="0.51" green="0.5" blue="0.49" /></rect></element>
|
||||
<element name="red"><rect><color red="0.7" green="0.13" blue="0.12" /></rect></element>
|
||||
<element name="white"><rect><color red="0.81" green="0.8" blue="0.79" /></rect></element>
|
||||
|
||||
@ -460,6 +461,11 @@ authors:hap
|
||||
<element ref="white"><bounds x="105.4" y="70.44" width="5.7" height="3.7" /></element>
|
||||
<element ref="red"><bounds x="105.4" y="78.15" width="5.7" height="3.7" /></element>
|
||||
|
||||
<repeat count="7">
|
||||
<param name="y" start="29.91" increment="7.71" />
|
||||
<element ref="gray"><bounds x="86" yc="~y~" width="25.25" height="0.1" /></element>
|
||||
</repeat>
|
||||
|
||||
<element ref="text_l7"><bounds x="87.5" y="70.59" width="3" height="3" /></element>
|
||||
<element ref="text_l8"><bounds x="87.5" y="78.30" width="3" height="3" /></element>
|
||||
|
||||
|
@ -478,6 +478,6 @@ authors:hap
|
||||
|
||||
<screen index="0"><bounds x="84.5" y="88.5" width="22" height="6.94" /></screen>
|
||||
<element ref="lcdm" blend="multiply"><bounds x="82" y="88" width="30" height="10" /></element>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</mamelayout>
|
||||
|
@ -34856,6 +34856,9 @@ diablo68
|
||||
diablo68a
|
||||
scorpio68
|
||||
|
||||
@source:novag/mentor16.cpp
|
||||
mentor16
|
||||
|
||||
@source:novag/micro.cpp
|
||||
nmicro
|
||||
|
||||
|
@ -51,10 +51,10 @@ public:
|
||||
m_inputs(*this, "IN.0")
|
||||
{ }
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(power_off);
|
||||
|
||||
void accord(machine_config &config);
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(power_off);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
|
@ -56,10 +56,10 @@ public:
|
||||
m_inputs(*this, "IN.0")
|
||||
{ }
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(power_off);
|
||||
|
||||
void constjr(machine_config &config);
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(power_off);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
|
316
src/mame/novag/mentor16.cpp
Normal file
316
src/mame/novag/mentor16.cpp
Normal file
@ -0,0 +1,316 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:hap
|
||||
// thanks-to:Berger
|
||||
/*******************************************************************************
|
||||
|
||||
Novag Mentor 16 (model 892)
|
||||
|
||||
NOTE: Turn the power switch off before exiting MAME, otherwise NVRAM won't save
|
||||
properly.
|
||||
|
||||
Hardware notes:
|
||||
- PCB label: 100103
|
||||
- Hitachi HD6301Y0P @ 8MHz
|
||||
- 2*4-digit LCD panels,
|
||||
- piezo, 16+4 LEDs, 8*8 chessboard buttons
|
||||
|
||||
TODO:
|
||||
- It expects P63 input to be 0 even though that pin is set to output, otherwise
|
||||
the piezo is very slow. There's a workaround in p6_w. This is the 2nd time I
|
||||
saw a situation like this, perhaps external devices can override DDR?
|
||||
- is Novag Amigo the same ROM? MCU label is also "892A", but QFP, ROM serial M44
|
||||
|
||||
*******************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
|
||||
#include "cpu/m6800/m6801.h"
|
||||
#include "machine/sensorboard.h"
|
||||
#include "sound/dac.h"
|
||||
#include "video/pwm.h"
|
||||
|
||||
#include "speaker.h"
|
||||
|
||||
// internal artwork
|
||||
#include "novag_mentor16.lh"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
class mentor16_state : public driver_device
|
||||
{
|
||||
public:
|
||||
mentor16_state(const machine_config &mconfig, device_type type, const char *tag) :
|
||||
driver_device(mconfig, type, tag),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_board(*this, "board"),
|
||||
m_led_pwm(*this, "led_pwm"),
|
||||
m_lcd_pwm(*this, "lcd_pwm"),
|
||||
m_dac(*this, "dac"),
|
||||
m_inputs(*this, "IN.%u", 0),
|
||||
m_out_lcd(*this, "s%u.%u", 0U, 0U),
|
||||
m_out_digit(*this, "digit%u", 0U)
|
||||
{ }
|
||||
|
||||
void mentor16(machine_config &config);
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(power_off);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
|
||||
private:
|
||||
// devices/pointers
|
||||
required_device<hd6301y0_cpu_device> m_maincpu;
|
||||
required_device<sensorboard_device> m_board;
|
||||
required_device<pwm_display_device> m_led_pwm;
|
||||
required_device<pwm_display_device> m_lcd_pwm;
|
||||
required_device<dac_2bit_ones_complement_device> m_dac;
|
||||
required_ioport_array<2> m_inputs;
|
||||
output_finder<4, 16> m_out_lcd;
|
||||
output_finder<8> m_out_digit;
|
||||
|
||||
bool m_power = false;
|
||||
u8 m_inp_mux = 0;
|
||||
u16 m_lcd_segs = 0;
|
||||
u8 m_lcd_com = 0;
|
||||
|
||||
// I/O handlers
|
||||
void standby(int state);
|
||||
|
||||
void lcd_pwm_w(offs_t offset, u8 data);
|
||||
void update_lcd();
|
||||
template <int N> void lcd_segs_w(u8 data);
|
||||
void lcd_com_w(u8 data);
|
||||
|
||||
void p2_w(u8 data);
|
||||
u8 p5_r();
|
||||
u8 p6_r();
|
||||
void p6_w(u8 data);
|
||||
};
|
||||
|
||||
void mentor16_state::machine_start()
|
||||
{
|
||||
m_out_lcd.resolve();
|
||||
m_out_digit.resolve();
|
||||
|
||||
// register for savestates
|
||||
save_item(NAME(m_power));
|
||||
save_item(NAME(m_inp_mux));
|
||||
save_item(NAME(m_lcd_segs));
|
||||
save_item(NAME(m_lcd_com));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
I/O
|
||||
*******************************************************************************/
|
||||
|
||||
// power
|
||||
|
||||
void mentor16_state::machine_reset()
|
||||
{
|
||||
m_power = true;
|
||||
}
|
||||
|
||||
INPUT_CHANGED_MEMBER(mentor16_state::power_off)
|
||||
{
|
||||
if (newval)
|
||||
m_power = false;
|
||||
}
|
||||
|
||||
void mentor16_state::standby(int state)
|
||||
{
|
||||
// clear display
|
||||
if (state)
|
||||
{
|
||||
m_led_pwm->clear();
|
||||
m_lcd_pwm->clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// LCD
|
||||
|
||||
void mentor16_state::lcd_pwm_w(offs_t offset, u8 data)
|
||||
{
|
||||
// output raw segment data
|
||||
m_out_lcd[offset & 0x3f][offset >> 6] = data;
|
||||
|
||||
// convert to 7seg digit
|
||||
int d = offset >> 6 & 0xe;
|
||||
m_out_digit[d >> 1] =
|
||||
m_out_lcd[0][d | 1] << 0 |
|
||||
m_out_lcd[1][d | 1] << 1 |
|
||||
m_out_lcd[2][d | 1] << 2 |
|
||||
m_out_lcd[3][d | 0] << 3 |
|
||||
m_out_lcd[2][d | 0] << 4 |
|
||||
m_out_lcd[0][d | 0] << 5 |
|
||||
m_out_lcd[1][d | 0] << 6;
|
||||
}
|
||||
|
||||
void mentor16_state::update_lcd()
|
||||
{
|
||||
for (int i = 0; i < 4; i++)
|
||||
m_lcd_pwm->write_row(i, BIT(m_lcd_com, i + 4) ? ((m_lcd_com & 1) ? ~m_lcd_segs : m_lcd_segs) : 0);
|
||||
}
|
||||
|
||||
template <int N>
|
||||
void mentor16_state::lcd_segs_w(u8 data)
|
||||
{
|
||||
// P1x, P4x: LCD segments
|
||||
const u8 shift = 8 * N;
|
||||
m_lcd_segs = (m_lcd_segs & ~(0xff << shift)) | (data << shift);
|
||||
update_lcd();
|
||||
}
|
||||
|
||||
void mentor16_state::lcd_com_w(u8 data)
|
||||
{
|
||||
// P30: 4066 Y0-Y3, P34-P37: 4066 E0-E3
|
||||
// 4066 Z0-Z3: LCD commons
|
||||
m_lcd_com = data;
|
||||
update_lcd();
|
||||
}
|
||||
|
||||
|
||||
// misc
|
||||
|
||||
void mentor16_state::p2_w(u8 data)
|
||||
{
|
||||
// P20-P27: input mux, led data
|
||||
m_inp_mux = bitswap<8>(~data,0,1,2,3,4,5,6,7);
|
||||
m_led_pwm->write_mx(m_inp_mux);
|
||||
}
|
||||
|
||||
|
||||
u8 mentor16_state::p5_r()
|
||||
{
|
||||
// P50-P57: read chessboard
|
||||
u8 data = 0;
|
||||
|
||||
// read chessboard
|
||||
for (int i = 0; i < 8; i++)
|
||||
if (BIT(m_inp_mux, i))
|
||||
data |= m_board->read_rank(i);
|
||||
|
||||
return ~data;
|
||||
}
|
||||
|
||||
u8 mentor16_state::p6_r()
|
||||
{
|
||||
u8 data = 0;
|
||||
|
||||
// P60,P61: read buttons
|
||||
for (int i = 0; i < 2; i++)
|
||||
if (m_inp_mux & m_inputs[i]->read())
|
||||
data |= 1 << i;
|
||||
|
||||
// P67: power state
|
||||
data |= (m_power) ? 0x80 : 0x00;
|
||||
return ~data ^ 8;
|
||||
}
|
||||
|
||||
void mentor16_state::p6_w(u8 data)
|
||||
{
|
||||
// P62,P63: speaker out
|
||||
m_dac->write(~data >> 2 & 3);
|
||||
|
||||
// P64-P66: led select
|
||||
m_led_pwm->write_my(~data >> 4 & 7);
|
||||
|
||||
// HACK: force DDR6 to be 0x74
|
||||
m_maincpu->space(AS_PROGRAM).write_byte(0x16, 0x74);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
Input Ports
|
||||
*******************************************************************************/
|
||||
|
||||
static INPUT_PORTS_START( mentor16 )
|
||||
PORT_START("IN.0")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1) PORT_NAME("Take Back")
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2) PORT_NAME("Set Level")
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3) PORT_NAME("Autoplay / Pawn")
|
||||
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4) PORT_NAME("Depth Search / Rook")
|
||||
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_NAME("Solve Mate / Knight")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_NAME("Sound / Bishop")
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_7) PORT_NAME("Random / Queen")
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_8) PORT_NAME("Player/Player / King")
|
||||
|
||||
PORT_START("IN.1")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Q) PORT_NAME("Go")
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_W) PORT_NAME("Hint / Show Moves")
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_E) PORT_NAME("Move Time")
|
||||
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) PORT_NAME("Acc. Time")
|
||||
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_T) PORT_NAME("Clear Board")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Y) PORT_NAME("Change Color")
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_U) PORT_NAME("Set Up / Verify")
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_I) PORT_CODE(KEYCODE_N) PORT_NAME("New Game")
|
||||
|
||||
PORT_START("POWER") // needs to be triggered for nvram to work
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, mentor16_state, power_off, 0) PORT_NAME("Power Off")
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
Machine Configs
|
||||
*******************************************************************************/
|
||||
|
||||
void mentor16_state::mentor16(machine_config &config)
|
||||
{
|
||||
// basic machine hardware
|
||||
HD6301Y0(config, m_maincpu, 8_MHz_XTAL);
|
||||
m_maincpu->nvram_enable_backup(true);
|
||||
m_maincpu->standby_cb().set(m_maincpu, FUNC(hd6301y0_cpu_device::nvram_set_battery));
|
||||
m_maincpu->standby_cb().set(FUNC(mentor16_state::standby));
|
||||
m_maincpu->out_p1_cb().set(FUNC(mentor16_state::lcd_segs_w<0>));
|
||||
m_maincpu->out_p2_cb().set(FUNC(mentor16_state::p2_w));
|
||||
m_maincpu->out_p3_cb().set(FUNC(mentor16_state::lcd_com_w));
|
||||
m_maincpu->out_p4_cb().set(FUNC(mentor16_state::lcd_segs_w<1>));
|
||||
m_maincpu->in_p5_cb().set(FUNC(mentor16_state::p5_r));
|
||||
m_maincpu->in_p6_cb().set(FUNC(mentor16_state::p6_r));
|
||||
m_maincpu->out_p6_cb().set(FUNC(mentor16_state::p6_w));
|
||||
|
||||
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));
|
||||
m_board->set_nvram_enable(true);
|
||||
|
||||
// video hardware
|
||||
PWM_DISPLAY(config, m_lcd_pwm).set_size(4, 16);
|
||||
m_lcd_pwm->output_x().set(FUNC(mentor16_state::lcd_pwm_w));
|
||||
|
||||
PWM_DISPLAY(config, m_led_pwm).set_size(3, 8);
|
||||
config.set_default_layout(layout_novag_mentor16);
|
||||
|
||||
// sound hardware
|
||||
SPEAKER(config, "speaker").front_center();
|
||||
DAC_2BIT_ONES_COMPLEMENT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
ROM Definitions
|
||||
*******************************************************************************/
|
||||
|
||||
ROM_START( mentor16 )
|
||||
ROM_REGION( 0x4000, "maincpu", 0 )
|
||||
ROM_LOAD("novag_892a_31y0rk62p.u1", 0x0000, 0x4000, CRC(78176c7b) SHA1(fbd1b29efa5d80411754bf7cd6b80f388e065321) )
|
||||
ROM_END
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
Drivers
|
||||
*******************************************************************************/
|
||||
|
||||
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS
|
||||
SYST( 1989, mentor16, 0, 0, mentor16, mentor16, mentor16_state, empty_init, "Novag", "Mentor 16", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
@ -84,12 +84,11 @@ public:
|
||||
m_out_lcd(*this, "s%u.%u", 0U, 0U)
|
||||
{ }
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(power_off);
|
||||
|
||||
// machine configs
|
||||
void supremo(machine_config &config);
|
||||
void snova(machine_config &config);
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(power_off);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
|
||||
@ -277,7 +276,7 @@ static INPUT_PORTS_START( supremo )
|
||||
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_T) PORT_NAME("Color")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Y) PORT_NAME("Verify / Set Up")
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_U) PORT_NAME("Random")
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_I) PORT_NAME("New Game")
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_I) PORT_CODE(KEYCODE_N) PORT_NAME("New Game")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( snova )
|
||||
@ -299,7 +298,7 @@ static INPUT_PORTS_START( snova )
|
||||
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) PORT_NAME("Color / Video")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_E) PORT_NAME("Set Up / Verify")
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_W) PORT_NAME("Random / Auto Clock")
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Q) PORT_NAME("New Game")
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Q) PORT_CODE(KEYCODE_N) PORT_NAME("New Game")
|
||||
|
||||
PORT_START("POWER") // needs to be triggered for nvram to work
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, snova_state, power_off, 0) PORT_NAME("Power Off")
|
||||
|
@ -30,7 +30,7 @@ Novag VIP (aka V.I.P.) (model 872)
|
||||
|
||||
Hardware notes:
|
||||
- PCB label: 100078
|
||||
- Hitachi HD6301YF (mode 2) @ 8MHz
|
||||
- Hitachi HD6301Y0F (mode 2) @ 8MHz
|
||||
- 2KB RAM (NEC D449G-15)
|
||||
- LCD with 4 digits and custom segments, no LCD chip
|
||||
- 24 buttons, piezo
|
||||
@ -48,7 +48,7 @@ Novag Super VIP (aka Super V.I.P.) (model 895)
|
||||
|
||||
Hardware notes:
|
||||
- PCB label: 100115
|
||||
- Hitachi HD6301YF (mode 2) @ 9.83MHz
|
||||
- Hitachi HD6301Y0F (mode 2) @ 9.83MHz
|
||||
- 32KB ROM(TC57256AD-12), 2KB RAM(TC5517CFL-20)
|
||||
- same LCD and button panel as VIP, RJ-12 port
|
||||
|
||||
@ -100,13 +100,12 @@ public:
|
||||
m_out_lcd(*this, "s%u.%u", 0U, 0U)
|
||||
{ }
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(power_off) { if (newval) m_power = false; }
|
||||
DECLARE_CUSTOM_INPUT_MEMBER(power_r) { return m_power ? 1 : 0; }
|
||||
|
||||
// machine configs
|
||||
void vip(machine_config &config);
|
||||
void svip(machine_config &config);
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(power_off) { if (newval) m_power = false; }
|
||||
DECLARE_CUSTOM_INPUT_MEMBER(power_r) { return m_power ? 1 : 0; }
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override { m_power = true; }
|
||||
|
Loading…
Reference in New Issue
Block a user