zac_proto: added layout (nw)

This commit is contained in:
Robbbert 2012-08-25 12:06:40 +00:00
parent e93c3cedae
commit 6c976cac7d
4 changed files with 77 additions and 4 deletions

1
.gitattributes vendored
View file

@ -4411,6 +4411,7 @@ src/mame/layout/videopkr.lay svneol=native#text/plain
src/mame/layout/wecleman.lay svneol=native#text/plain
src/mame/layout/wildone.lay svneol=native#text/plain
src/mame/layout/wldarrow.lay svneol=native#text/plain
src/mame/layout/zac_proto.lay svneol=native#text/plain
src/mame/machine/3do.c svneol=native#text/plain
src/mame/machine/acitya.c svneol=native#text/plain
src/mame/machine/ajax.c svneol=native#text/plain

View file

@ -4,7 +4,7 @@
#include "emu.h"
#include "cpu/scmp/scmp.h"
//#include "zac-proto.lh"
#include "zac_proto.lh"
class zac_proto_state : public driver_device
{
@ -73,9 +73,11 @@ WRITE8_MEMBER( zac_proto_state::out1_w )
WRITE8_MEMBER( zac_proto_state::digit_w )
{
static const UINT8 patterns[16] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f, 0, 0, 0, 0, 0, 0 };
static const UINT8 decimals[10] = { 0, 0, 0x80, 0, 0, 0x80, 0, 0, 0, 0 };
offset<<=1;
output_set_digit_value(offset++, patterns[data&15]);
output_set_digit_value(offset, patterns[data>>4]);
output_set_digit_value(offset, patterns[data&15] | decimals[offset]);
offset++;
output_set_digit_value(offset, patterns[data>>4] | decimals[offset]);
}
WRITE8_MEMBER( zac_proto_state::sound_w )
@ -97,7 +99,7 @@ static MACHINE_CONFIG_START( zac_proto, zac_proto_state )
MCFG_CPU_PROGRAM_MAP(zac_proto_map)
/* Video */
//MCFG_DEFAULT_LAYOUT(layout_zac_proto)
MCFG_DEFAULT_LAYOUT(layout_zac_proto)
MACHINE_CONFIG_END
/*--------------------------------

View file

@ -0,0 +1,68 @@
<!-- flicker.lay -->
<!-- 2012-08-22: Initial version. [Robbbert] -->
<mamelayout version="2">
<element name="digit" defstate="0">
<led7seg>
<color red="1.0" green="0.0" blue="0.0" />
</led7seg>
</element>
<element name="background">
<rect>
<bounds left="0" top="0" right="1" bottom="1" />
<color red="0.0" green="0.0" blue="0.0" />
</rect>
</element>
<element name="P0"><text string="Ball"><color red="1.0" green="1.0" blue="1.0" /></text></element>
<element name="P1"><text string="Credits"><color red="1.0" green="1.0" blue="1.0" /></text></element>
<element name="P3"><text string="Score"><color red="1.0" green="1.0" blue="1.0" /></text></element>
<view name="Default Layout">
<!-- Background -->
<backdrop element="background">
<bounds left="0" top="0" right="318" bottom="180" />
</backdrop>
<!-- LEDs -->
<bezel name="digit5" element="digit">
<bounds left="10" top="45" right="44" bottom="84" />
</bezel>
<bezel name="digit4" element="digit">
<bounds left="54" top="45" right="88" bottom="84" />
</bezel>
<bezel name="digit3" element="digit">
<bounds left="98" top="45" right="132" bottom="84" />
</bezel>
<bezel name="digit2" element="digit">
<bounds left="142" top="45" right="176" bottom="84" />
</bezel>
<bezel name="digit1" element="digit">
<bounds left="186" top="45" right="220" bottom="84" />
</bezel>
<bezel name="digit0" element="digit">
<bounds left="230" top="45" right="264" bottom="84" />
</bezel>
<bezel name="digit10" element="digit">
<bounds left="274" top="45" right="308" bottom="84" />
</bezel>
<bezel name="digit7" element="digit">
<bounds left="30" top="145" right="54" bottom="170" />
</bezel>
<bezel name="digit6" element="digit">
<bounds left="64" top="145" right="88" bottom="170" />
</bezel>
<bezel name="digit9" element="digit">
<bounds left="230" top="145" right="254" bottom="170" />
</bezel>
<bezel name="digit8" element="digit">
<bounds left="264" top="145" right="288" bottom="170" />
</bezel>
<bezel element="P0"><bounds left="230" right="288" top="110" bottom="135" /></bezel>
<bezel element="P1"><bounds left="30" right="88" top="110" bottom="135" /></bezel>
<bezel element="P3"><bounds left="100" right="200" top="10" bottom="35" /></bezel>
</view>
</mamelayout>

View file

@ -2245,6 +2245,8 @@ $(DRIVERS)/wecleman.o: $(LAYOUT)/wecleman.lh
$(DRIVERS)/zac2650.o: $(LAYOUT)/tinv2650.lh
$(DRIVERS)/zac_proto.o: $(LAYOUT)/zac_proto.lh
$(DRIVERS)/peyper.o: $(LAYOUT)/peyper.lh
$(MACHINE)/megadriv.o: $(LAYOUT)/megacd.lh