mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
New working systems
------------------- Primo (Novag) [hap, Berger]
This commit is contained in:
parent
37c419f51a
commit
de4d2a5902
475
src/mame/layout/novag_primo.lay
Normal file
475
src/mame/layout/novag_primo.lay
Normal file
@ -0,0 +1,475 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
license:CC0-1.0
|
||||
authors:hap
|
||||
-->
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- 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.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="lcdm"><rect><color red="0.7" green="0.71" blue="0.72" /></rect></element>
|
||||
|
||||
<element name="led" defstate="0">
|
||||
<disk state="1"><color red="1.0" green="0.1" blue="0.15" /></disk>
|
||||
<disk state="0"><color red="0.17" 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"><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_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/br.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/bb.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/bn.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="Referee"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb01"><text string="Sound"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb02"><text string="Solve Mate"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb03"><text string="Easy"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb04"><text string="Info"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb05"><text string="Set Level"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb06"><text string="Trace Forward"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb07"><text string="Auto Play"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb08"><text string="Trace Back"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb09"><text string="Next Best"><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="Random"><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="Set Up"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb14"><text string="Color"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb15"><text string="Clear"><color red="0.51" green="0.5" blue="0.49" /></text></element>
|
||||
<element name="text_rb16"><text string="Clear Board"><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="Restore"><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>
|
||||
|
||||
|
||||
<!-- build screen -->
|
||||
|
||||
<view name="Internal Layout">
|
||||
<bounds left="-12.5" right="108.5" top="0.5" bottom="97.45" />
|
||||
|
||||
<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.4" y="4.8" width="2" height="2" /></element>
|
||||
<element ref="text_7"><bounds x="1.4" y="14.8" width="2" height="2" /></element>
|
||||
<element ref="text_6"><bounds x="1.4" y="24.8" width="2" height="2" /></element>
|
||||
<element ref="text_5"><bounds x="1.4" y="34.8" width="2" height="2" /></element>
|
||||
<element ref="text_4"><bounds x="1.4" y="44.8" width="2" height="2" /></element>
|
||||
<element ref="text_3"><bounds x="1.4" y="54.8" width="2" height="2" /></element>
|
||||
<element ref="text_2"><bounds x="1.4" y="64.8" width="2" height="2" /></element>
|
||||
<element ref="text_1"><bounds x="1.4" y="74.8" width="2" height="2" /></element>
|
||||
|
||||
<element ref="text_a"><bounds x="10" y="84.3" width="2" height="2" /></element>
|
||||
<element ref="text_b"><bounds x="20" y="84.3" width="2" height="2" /></element>
|
||||
<element ref="text_c"><bounds x="30" y="84.3" width="2" height="2" /></element>
|
||||
<element ref="text_d"><bounds x="40" y="84.3" width="2" height="2" /></element>
|
||||
<element ref="text_e"><bounds x="50" y="84.3" width="2" height="2" /></element>
|
||||
<element ref="text_f"><bounds x="60" y="84.3" width="2" height="2" /></element>
|
||||
<element ref="text_g"><bounds x="70" y="84.3" width="2" height="2" /></element>
|
||||
<element ref="text_h"><bounds x="80" y="84.3" width="2" height="2" /></element>
|
||||
|
||||
<!-- chessboard leds -->
|
||||
<element name="0.0" ref="led"><bounds x="1.5" y="7.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.1" ref="led"><bounds x="1.5" y="17.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.2" ref="led"><bounds x="1.5" y="27.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.3" ref="led"><bounds x="1.5" y="37.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.4" ref="led"><bounds x="1.5" y="47.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.5" ref="led"><bounds x="1.5" y="57.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.6" ref="led"><bounds x="1.5" y="67.25" width="1.5" height="1.5" /></element>
|
||||
<element name="0.7" ref="led"><bounds x="1.5" y="77.25" width="1.5" height="1.5" /></element>
|
||||
|
||||
<element name="1.0" ref="led"><bounds x="8.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.1" ref="led"><bounds x="18.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.2" ref="led"><bounds x="28.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.3" ref="led"><bounds x="38.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.4" ref="led"><bounds x="48.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.5" ref="led"><bounds x="58.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.6" ref="led"><bounds x="68.25" y="84.5" width="1.5" height="1.5" /></element>
|
||||
<element name="1.7" ref="led"><bounds x="78.25" y="84.5" width="1.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="70.3" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb08"><bounds x="84" y="74.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb09"><bounds x="84" y="80.3" 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="24.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb13"><bounds x="93" y="30.3" 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="50.3" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb17"><bounds x="93" y="54.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb18"><bounds x="93" y="64.2" width="14" height="1.5" /></element>
|
||||
<element ref="text_rb19"><bounds x="93" y="74.2" width="14" height="1.5" /></element>
|
||||
|
||||
<element ref="red"><bounds x="88" y="6" width="6" height="4" /></element>
|
||||
<element ref="red"><bounds x="88" y="16" width="6" height="4" /></element>
|
||||
<element ref="red"><bounds x="88" y="26" width="6" height="4" /></element>
|
||||
<element ref="red"><bounds x="88" y="36" width="6" height="4" /></element>
|
||||
<element ref="red"><bounds x="88" y="46" width="6" height="4" /></element>
|
||||
<element ref="red"><bounds x="88" y="56" width="6" height="4" /></element>
|
||||
<element ref="red"><bounds x="88" y="66" width="6" height="4" /></element>
|
||||
<element ref="red"><bounds x="88" y="76" width="6" height="4" /></element>
|
||||
<element ref="white"><bounds x="88.15" y="6.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="white"><bounds x="88.15" y="16.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="white"><bounds x="88.15" y="26.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="white"><bounds x="88.15" y="36.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="white"><bounds x="88.15" y="46.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="white"><bounds x="88.15" y="56.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="white"><bounds x="88.15" y="66.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="white"><bounds x="88.15" y="76.15" width="5.7" height="3.7" /></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="red"><bounds x="97" y="16" width="6" height="4" /></element>
|
||||
<element ref="red"><bounds x="97" y="26" width="6" height="4" /></element>
|
||||
<element ref="red"><bounds x="97" y="36" width="6" height="4" /></element>
|
||||
<element ref="red"><bounds x="97" y="46" width="6" height="4" /></element>
|
||||
<element ref="red"><bounds x="97" y="56" width="6" height="4" /></element>
|
||||
<element ref="red"><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="white"><bounds x="97.15" y="16.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="white"><bounds x="97.15" y="26.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="white"><bounds x="97.15" y="36.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="white"><bounds x="97.15" y="46.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="white"><bounds x="97.15" y="56.15" width="5.7" height="3.7" /></element>
|
||||
<element ref="white"><bounds x="97.15" y="66.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>
|
||||
|
||||
<element ref="gray"><bounds x="86" y="12.75" width="19" height="0.5" /></element>
|
||||
<element ref="gray"><bounds x="86" y="22.75" width="19" height="0.5" /></element>
|
||||
<element ref="gray"><bounds x="86" y="32.75" width="19" height="0.5" /></element>
|
||||
<element ref="gray"><bounds x="86" y="42.75" width="19" height="0.5" /></element>
|
||||
<element ref="gray"><bounds x="86" y="52.75" width="19" height="0.5" /></element>
|
||||
<element ref="gray"><bounds x="86" y="62.75" width="19" height="0.5" /></element>
|
||||
<element ref="gray"><bounds x="86" y="72.75" width="19" height="0.5" /></element>
|
||||
|
||||
<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>
|
||||
</mamelayout>
|
@ -345,7 +345,7 @@ authors:hap
|
||||
<group ref="sb_ui"><bounds x="-11" y="3" width="10" height="80" /></group>
|
||||
|
||||
<!-- chessboard coords -->
|
||||
<element ref="text_8"><bounds x="1.4" y="9" width="2" height="2" /></element>
|
||||
<element ref="text_8"><bounds x="1.4" y="9" width="2" height="2" /></element>
|
||||
<element ref="text_7"><bounds x="1.4" y="19" width="2" height="2" /></element>
|
||||
<element ref="text_6"><bounds x="1.4" y="29" width="2" height="2" /></element>
|
||||
<element ref="text_5"><bounds x="1.4" y="39" width="2" height="2" /></element>
|
||||
|
@ -34888,6 +34888,7 @@ sfortec //
|
||||
sfortec1 //
|
||||
|
||||
@source:novag/snova.cpp
|
||||
nprimo
|
||||
nsnova
|
||||
supremo
|
||||
|
||||
|
@ -11,10 +11,11 @@ properly.
|
||||
Hardware notes:
|
||||
- PCB label: 100103
|
||||
- Hitachi HD6301Y0P @ 8MHz
|
||||
- 2*4-digit LCD panels,
|
||||
- 2*4-digit LCD panels
|
||||
- piezo, 16+4 LEDs, 8*8 chessboard buttons
|
||||
|
||||
TODO:
|
||||
- if/when MAME supports an exit callback, hook up power-off switch to that
|
||||
- is Novag Amigo the same ROM? MCU label is also "892A", but QFP, ROM serial M44
|
||||
|
||||
BTANB:
|
||||
@ -55,11 +56,11 @@ public:
|
||||
|
||||
void mentor16(machine_config &config);
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(power_off);
|
||||
DECLARE_INPUT_CHANGED_MEMBER(power_off) { if (newval) m_power = false; }
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
virtual void machine_reset() override { m_power = true; }
|
||||
|
||||
private:
|
||||
// devices/pointers
|
||||
@ -115,30 +116,6 @@ void mentor16_state::machine_start()
|
||||
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)
|
||||
@ -183,6 +160,16 @@ void mentor16_state::lcd_com_w(u8 data)
|
||||
|
||||
// misc
|
||||
|
||||
void mentor16_state::standby(int state)
|
||||
{
|
||||
// clear display
|
||||
if (state)
|
||||
{
|
||||
m_led_pwm->clear();
|
||||
m_lcd_pwm->clear();
|
||||
}
|
||||
}
|
||||
|
||||
void mentor16_state::update_piezo(s32 param)
|
||||
{
|
||||
m_piezo_data = param & 3;
|
||||
|
@ -3,29 +3,46 @@
|
||||
// thanks-to:Berger, bataais
|
||||
/*******************************************************************************
|
||||
|
||||
Novag Super Nova & related chess computers. I believe the series started with
|
||||
Primo. The chess engine is by David Kittinger.
|
||||
Novag Primo & related chess computers. The chess engine is by David Kittinger.
|
||||
|
||||
NOTE: nsnova does an NMI at power-off (or power-failure). If this isn't done,
|
||||
NVRAM won't work properly (supremo doesn't have NVRAM).
|
||||
NOTE: Turn the power switch off before exiting MAME, otherwise NVRAM won't save
|
||||
properly.
|
||||
|
||||
TODO:
|
||||
- if/when MAME supports an exit callback, hook up nsnova power-off switch to that
|
||||
- unmapped reads from 0x33/0x34 (nsnova) or 0x3c/0x3d (supremo)
|
||||
- if/when MAME supports an exit callback, hook up power-off switch to that
|
||||
- unmapped reads from 0x3c/0x3d (primo/supremo) or 0x33/0x34 (nsnova)
|
||||
- supremo unmapped writes to 0x2000/0x6000, always 0?
|
||||
- is "Aquamarine / Super Nova" the same rom as nsnova and just a redesign?
|
||||
- is the 1st version of supremo(black plastic) the same ROM?
|
||||
|
||||
BTANB:
|
||||
- primo has the same bug as nvip, where if the user presses Go right after
|
||||
entering a move, the CPU opponent will answer by playing a move with white
|
||||
|
||||
================================================================================
|
||||
|
||||
Novag Primo (model 871)
|
||||
-----------------------
|
||||
|
||||
Hardware notes:
|
||||
- PCB label: 100059/100060
|
||||
- Hitachi HD6301Y0P (mode 2) @ 8MHz
|
||||
- 2KB RAM(M5M5118P)
|
||||
- LCD with 4 digits and custom segments, no LCD chip
|
||||
- buzzer, 16 LEDs, 8*8 chessboard buttons
|
||||
|
||||
The LCD is the same as the one in VIP / Super VIP.
|
||||
|
||||
================================================================================
|
||||
|
||||
Novag Supremo (model 881)
|
||||
-------------------------
|
||||
|
||||
Hardware notes:
|
||||
- Hitachi HD63A03YP MCU @ 8MHz (2MHz internal)
|
||||
- PCB label: 100090
|
||||
- Hitachi HD63A03YP @ 8MHz
|
||||
- 32KB ROM(TC57256AD-12), 2KB RAM(TC5516APL)
|
||||
- LCD with 4 digits and custom segments, no LCD chip
|
||||
- buzzer, 16 LEDs, 8*8 chessboard buttons
|
||||
- rest is same as Primo
|
||||
|
||||
Supremo also had a "limited edition" rerelease in 1990, plastic is fake-wood
|
||||
instead of black and backpanel sticker is gold, otherwise it's the same game.
|
||||
@ -37,7 +54,7 @@ Novag Super Nova (model 904)
|
||||
----------------------------
|
||||
|
||||
Hardware notes:
|
||||
- Hitachi HD63A03YP MCU @ 16MHz (4MHz internal)
|
||||
- Hitachi HD63A03YP @ 16MHz
|
||||
- 32KB ROM(TC57256AD-12), 8KB RAM(CXK58648P-10L)
|
||||
- LCD with 4 digits and custom segments, no LCD chip
|
||||
- RJ-12 port for Novag Super System (like the one in nsvip/sexpertc)
|
||||
@ -63,6 +80,7 @@ the Super VIP combined with the Novag Super System Touch Sensory board.
|
||||
#include "speaker.h"
|
||||
|
||||
// internal artwork
|
||||
#include "novag_primo.lh"
|
||||
#include "novag_snova.lh"
|
||||
#include "novag_supremo.lh"
|
||||
|
||||
@ -84,17 +102,20 @@ public:
|
||||
m_out_lcd(*this, "s%u.%u", 0U, 0U)
|
||||
{ }
|
||||
|
||||
void primo(machine_config &config);
|
||||
void supremo(machine_config &config);
|
||||
void snova(machine_config &config);
|
||||
|
||||
DECLARE_INPUT_CHANGED_MEMBER(power_off);
|
||||
DECLARE_INPUT_CHANGED_MEMBER(primo_power_off) { if (newval) m_power = false; }
|
||||
DECLARE_INPUT_CHANGED_MEMBER(snova_power_off);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override { m_power = true; }
|
||||
|
||||
private:
|
||||
// devices/pointers
|
||||
required_device<hd6303y_cpu_device> m_maincpu;
|
||||
required_device<hd6301y_cpu_device> m_maincpu;
|
||||
required_device<sensorboard_device> m_board;
|
||||
required_device<pwm_display_device> m_lcd_pwm;
|
||||
required_device<pwm_display_device> m_led_pwm;
|
||||
@ -103,14 +124,17 @@ private:
|
||||
required_ioport_array<2> m_inputs;
|
||||
output_finder<4, 10> m_out_lcd;
|
||||
|
||||
bool m_power = false;
|
||||
bool m_lcd_strobe = false;
|
||||
u8 m_inp_mux = 0;
|
||||
u8 m_select = 0;
|
||||
u8 m_led_data = 0;
|
||||
|
||||
void snova_map(address_map &map);
|
||||
void primo_map(address_map &map);
|
||||
void supremo_map(address_map &map);
|
||||
void snova_map(address_map &map);
|
||||
|
||||
// I/O handlers
|
||||
void standby(int state);
|
||||
void lcd_pwm_w(offs_t offset, u8 data);
|
||||
void update_leds();
|
||||
@ -126,6 +150,7 @@ void snova_state::machine_start()
|
||||
m_out_lcd.resolve();
|
||||
|
||||
// register for savestates
|
||||
save_item(NAME(m_power));
|
||||
save_item(NAME(m_lcd_strobe));
|
||||
save_item(NAME(m_inp_mux));
|
||||
save_item(NAME(m_select));
|
||||
@ -150,7 +175,7 @@ void snova_state::standby(int state)
|
||||
}
|
||||
}
|
||||
|
||||
INPUT_CHANGED_MEMBER(snova_state::power_off)
|
||||
INPUT_CHANGED_MEMBER(snova_state::snova_power_off)
|
||||
{
|
||||
// NMI at power-off, which will trigger standby mode
|
||||
if (newval && !m_maincpu->standby())
|
||||
@ -188,6 +213,10 @@ u8 snova_state::p2_r()
|
||||
if (BIT(m_select, i + 6))
|
||||
data |= BIT(m_inputs[i]->read(), m_inp_mux);
|
||||
|
||||
// P23 (nprimo, supremo): power switch
|
||||
if (!m_power)
|
||||
data |= 8;
|
||||
|
||||
// P23 (nsnova): serial rx
|
||||
if (m_rs232)
|
||||
data |= m_rs232->rxd_r() << 3;
|
||||
@ -239,9 +268,14 @@ void snova_state::p6_w(u8 data)
|
||||
Address Maps
|
||||
*******************************************************************************/
|
||||
|
||||
void snova_state::primo_map(address_map &map)
|
||||
{
|
||||
map(0x4000, 0x47ff).ram().share("nvram");
|
||||
}
|
||||
|
||||
void snova_state::supremo_map(address_map &map)
|
||||
{
|
||||
map(0x4000, 0x47ff).ram();
|
||||
primo_map(map);
|
||||
map(0x8000, 0xffff).rom();
|
||||
}
|
||||
|
||||
@ -257,16 +291,16 @@ void snova_state::snova_map(address_map &map)
|
||||
Input Ports
|
||||
*******************************************************************************/
|
||||
|
||||
static INPUT_PORTS_START( supremo )
|
||||
static INPUT_PORTS_START( primo )
|
||||
PORT_START("IN.0")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1) PORT_NAME("Trace Back / Next Best")
|
||||
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2) PORT_NAME("Trace Forward / Auto Play")
|
||||
PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3) PORT_NAME("Set Level / Pawn")
|
||||
PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4) PORT_NAME("Info / Knight")
|
||||
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_NAME("Easy / Print Moves / Bishop")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_NAME("Solve Mate / Print Eval / Rook")
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_7) PORT_NAME("Sound / Print List / Queen")
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_8) PORT_NAME("Referee / Print Board / King")
|
||||
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_NAME("Easy / Bishop")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_NAME("Solve Mate / Rook")
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_7) PORT_NAME("Sound / Queen")
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_8) PORT_NAME("Referee / King")
|
||||
|
||||
PORT_START("IN.1")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Q) PORT_NAME("Go")
|
||||
@ -277,8 +311,22 @@ static INPUT_PORTS_START( supremo )
|
||||
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_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, primo_power_off, 0) PORT_NAME("Power Off")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( supremo )
|
||||
PORT_INCLUDE( primo )
|
||||
|
||||
PORT_MODIFY("IN.0")
|
||||
PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_NAME("Easy / Print Moves / Bishop")
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_NAME("Solve Mate / Print Eval / Rook")
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_7) PORT_NAME("Sound / Print List / Queen")
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_8) PORT_NAME("Referee / Print Board / King")
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
static INPUT_PORTS_START( snova )
|
||||
PORT_START("IN.0")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_8) PORT_NAME("Trace Back / Next Best")
|
||||
@ -300,8 +348,8 @@ static INPUT_PORTS_START( snova )
|
||||
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_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")
|
||||
PORT_START("POWER")
|
||||
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, snova_state, snova_power_off, 0) PORT_NAME("Power Off")
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
@ -310,19 +358,25 @@ INPUT_PORTS_END
|
||||
Machine Configs
|
||||
*******************************************************************************/
|
||||
|
||||
void snova_state::supremo(machine_config &config)
|
||||
void snova_state::primo(machine_config &config)
|
||||
{
|
||||
// basic machine hardware
|
||||
HD6303Y(config, m_maincpu, 8_MHz_XTAL);
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &snova_state::supremo_map);
|
||||
HD6301Y0(config, m_maincpu, 8_MHz_XTAL);
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &snova_state::primo_map);
|
||||
m_maincpu->nvram_enable_backup(true);
|
||||
m_maincpu->standby_cb().set(m_maincpu, FUNC(hd6301y0_cpu_device::nvram_set_battery));
|
||||
m_maincpu->standby_cb().append(FUNC(snova_state::standby));
|
||||
m_maincpu->in_p2_cb().set(FUNC(snova_state::p2_r));
|
||||
m_maincpu->out_p2_cb().set(FUNC(snova_state::p2_w));
|
||||
m_maincpu->out_p5_cb().set(FUNC(snova_state::p5_w));
|
||||
m_maincpu->out_p6_cb().set(FUNC(snova_state::p6_w));
|
||||
|
||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||
|
||||
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(350));
|
||||
m_board->set_nvram_enable(true);
|
||||
|
||||
// video hardware
|
||||
PWM_DISPLAY(config, m_lcd_pwm).set_size(4, 10);
|
||||
@ -334,13 +388,31 @@ void snova_state::supremo(machine_config &config)
|
||||
screen.set_visarea_full();
|
||||
|
||||
PWM_DISPLAY(config, m_led_pwm).set_size(2, 8);
|
||||
config.set_default_layout(layout_novag_supremo);
|
||||
config.set_default_layout(layout_novag_primo);
|
||||
|
||||
// sound hardware
|
||||
SPEAKER(config, "speaker").front_center();
|
||||
DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||
}
|
||||
|
||||
void snova_state::supremo(machine_config &config)
|
||||
{
|
||||
primo(config);
|
||||
|
||||
// basic machine hardware
|
||||
HD6303Y(config.replace(), m_maincpu, 8_MHz_XTAL);
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &snova_state::supremo_map);
|
||||
m_maincpu->nvram_enable_backup(true);
|
||||
m_maincpu->standby_cb().set(m_maincpu, FUNC(hd6303y_cpu_device::nvram_set_battery));
|
||||
m_maincpu->standby_cb().append(FUNC(snova_state::standby));
|
||||
m_maincpu->in_p2_cb().set(FUNC(snova_state::p2_r));
|
||||
m_maincpu->out_p2_cb().set(FUNC(snova_state::p2_w));
|
||||
m_maincpu->out_p5_cb().set(FUNC(snova_state::p5_w));
|
||||
m_maincpu->out_p6_cb().set(FUNC(snova_state::p6_w));
|
||||
|
||||
config.set_default_layout(layout_novag_supremo);
|
||||
}
|
||||
|
||||
void snova_state::snova(machine_config &config)
|
||||
{
|
||||
supremo(config);
|
||||
@ -348,12 +420,6 @@ void snova_state::snova(machine_config &config)
|
||||
// basic machine hardware
|
||||
m_maincpu->set_clock(16_MHz_XTAL);
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &snova_state::snova_map);
|
||||
m_maincpu->nvram_enable_backup(true);
|
||||
m_maincpu->standby_cb().set(m_maincpu, FUNC(hd6303y_cpu_device::nvram_set_battery));
|
||||
m_maincpu->standby_cb().append(FUNC(snova_state::standby));
|
||||
|
||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||
m_board->set_nvram_enable(true);
|
||||
|
||||
config.set_default_layout(layout_novag_snova);
|
||||
|
||||
@ -367,6 +433,15 @@ void snova_state::snova(machine_config &config)
|
||||
ROM Definitions
|
||||
*******************************************************************************/
|
||||
|
||||
ROM_START( nprimo )
|
||||
ROM_REGION( 0x4000, "maincpu", 0 )
|
||||
ROM_LOAD("novag_871_31y0c34p.u1", 0x0000, 0x4000, CRC(ad692d2e) SHA1(f41ae4e02a83ba6446a6df59a6ee2c2f87a1f4d8) )
|
||||
|
||||
ROM_REGION( 36256, "screen", 0 )
|
||||
ROM_LOAD("nvip.svg", 0, 36256, CRC(3373e0d5) SHA1(25bfbf0405017388c30f4529106baccb4723bc6b) )
|
||||
ROM_END
|
||||
|
||||
|
||||
ROM_START( supremo )
|
||||
ROM_REGION( 0x10000, "maincpu", 0 )
|
||||
ROM_LOAD("sp_a10.u5", 0x8000, 0x8000, CRC(1db63786) SHA1(4f24452ed8955b31ba88f68cc95c357660930aa4) )
|
||||
@ -375,6 +450,7 @@ ROM_START( supremo )
|
||||
ROM_LOAD("nvip.svg", 0, 36256, CRC(3373e0d5) SHA1(25bfbf0405017388c30f4529106baccb4723bc6b) )
|
||||
ROM_END
|
||||
|
||||
|
||||
ROM_START( nsnova ) // ID = N1.05
|
||||
ROM_REGION( 0x10000, "maincpu", 0 )
|
||||
ROM_LOAD("n_530.u5", 0x8000, 0x8000, CRC(727a0ada) SHA1(129c1edc5c1d2e12ce97ebef81c6d5555464a11d) )
|
||||
@ -392,6 +468,8 @@ ROM_END
|
||||
*******************************************************************************/
|
||||
|
||||
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS
|
||||
SYST( 1987, nprimo, 0, 0, primo, primo, snova_state, empty_init, "Novag", "Primo (Novag)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
||||
|
||||
SYST( 1988, supremo, 0, 0, supremo, supremo, snova_state, empty_init, "Novag", "Supremo", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
||||
|
||||
SYST( 1990, nsnova, 0, 0, snova, snova, snova_state, empty_init, "Novag", "Super Nova (Novag, v1.05)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
|
||||
|
@ -127,6 +127,7 @@ private:
|
||||
void vip_map(address_map &map);
|
||||
void svip_map(address_map &map);
|
||||
|
||||
// I/O handlers
|
||||
void lcd_pwm_w(offs_t offset, u8 data);
|
||||
u8 p2_r();
|
||||
void p2_w(u8 data);
|
||||
|
Loading…
Reference in New Issue
Block a user