summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2020-04-14 17:10:59 +0200
committer hap <happppp@users.noreply.github.com>2020-04-14 17:11:12 +0200
commit9341daa9edca31cb55ef3a8b842310bdd79551c5 (patch)
treec8b5ad73ceeb1e02e30f8e1ee51ab16cc93b42cd
parent16ed4f6108bee7d887cb54a470722cf3212a8968 (diff)
microvsn: show paddle pos in layout (nw)
-rw-r--r--hash/microvision.xml28
-rw-r--r--src/mame/layout/microvision.lay17
2 files changed, 29 insertions, 16 deletions
diff --git a/hash/microvision.xml b/hash/microvision.xml
index cf4ff1adb96..a6dcaadd7f7 100644
--- a/hash/microvision.xml
+++ b/hash/microvision.xml
@@ -254,6 +254,19 @@ The "butmask" feature indicates cartridge button restrict mask (active-low)
<!-- Homebrew (real hardware) -->
+ <software name="microbrd">
+ <description>MicroBird</description>
+ <year>2018</year>
+ <publisher>Ayza</publisher>
+ <part name="cart" interface="microvision_cart">
+ <feature name="clock" value="3000000" />
+ <feature name="paddle" value="0" />
+ <dataarea name="rom" size="0x400"> <!-- Intel 8748 MCU, reassembled to 8021 here -->
+ <rom name="microbrd.bin" size="0x400" crc="475a093d" sha1="6e3d2f47c836c43e8a3e74fffe30a64964e8df8c"/>
+ </dataarea>
+ </part>
+ </software>
+
<software name="tetris">
<description>Tetris (TMS1100 version)</description>
<year>2019</year>
@@ -281,19 +294,6 @@ The "butmask" feature indicates cartridge button restrict mask (active-low)
</part>
</software>
- <software name="microbrd">
- <description>MicroBird</description>
- <year>2018</year>
- <publisher>Ayza</publisher>
- <part name="cart" interface="microvision_cart">
- <feature name="clock" value="3000000" />
- <feature name="paddle" value="0" />
- <dataarea name="rom" size="0x400"> <!-- Intel 8748 MCU, reassembled to 8021 here -->
- <rom name="microbrd.bin" size="0x400" crc="475a093d" sha1="6e3d2f47c836c43e8a3e74fffe30a64964e8df8c"/>
- </dataarea>
- </part>
- </software>
-
<!-- Homebrew (emulator or Arduino version, untested on real console) -->
@@ -309,7 +309,7 @@ The "butmask" feature indicates cartridge button restrict mask (active-low)
</software>
<software name="invaders">
- <description>Invaders</description>
+ <description>Space Invaders</description>
<year>2014</year>
<publisher>Paul Robson</publisher>
<part name="cart" interface="microvision_cart">
diff --git a/src/mame/layout/microvision.lay b/src/mame/layout/microvision.lay
index 67034191d6f..9cea8157b5d 100644
--- a/src/mame/layout/microvision.lay
+++ b/src/mame/layout/microvision.lay
@@ -7,8 +7,16 @@ license:CC0
<!-- define elements -->
<element name="lcdb"><rect><color red="1" green="1" blue="1" /></rect></element>
- <element name="lcdm"><rect><color red="0.75" green="0.78" blue="0.78" /></rect></element>
- <element name="lcda"><rect><color red="0.22" green="0.2" blue="0.33" /></rect></element> <!-- blue tint -->
+ <element name="lcdm"><rect><color red="0.76" green="0.75" blue="0.71" /></rect></element>
+ <element name="lcda"><rect><color red="0.22" green="0.2" blue="0.38" /></rect></element> <!-- blue tint -->
+
+ <element name="nothing" defstate="0"><text string=" "/></element>
+ <element name="text_p1"><text string="PADDLE:" align="2"><color red="0.13" green="0.13" blue="0.15" /></text></element>
+ <element name="text_p2" defstate="0">
+ <simplecounter maxstate="999" digits="3" align="1">
+ <color red="0.13" green="0.13" blue="0.15" />
+ </simplecounter>
+ </element>
<!-- build screen -->
@@ -28,6 +36,11 @@ license:CC0
<element ref="lcda" blend="add"><bounds x="0" y="0" width="18" height="18" /></element>
<element ref="lcdm" blend="multiply"><bounds x="0" y="0" width="18" height="18" /></element>
+
+ <!-- show paddle position -->
+ <element ref="text_p1" blend="add"><bounds x="10.75" y="0.1" width="5" height="0.75" /></element>
+ <element ref="nothing" blend="add" inputtag="PADDLE" inputmask="0x00" inputraw="1"><bounds x="15.95" y="0.1" width="2" height="0.75" /></element> <!-- block clickable input -->
+ <element ref="text_p2" blend="add" inputtag="PADDLE" inputmask="0xff" inputraw="1"><bounds x="15.95" y="0.1" width="2" height="0.75" /></element>
</view>
</mamelayout>