diff options
author | Robbbert <robbbert@users.noreply.github.com> | 2012-08-28 07:49:17 +0000 |
---|---|---|
committer | Robbbert <robbbert@users.noreply.github.com> | 2012-08-28 07:49:17 +0000 |
commit | 04e4b16d083e36dff16aa5086602535f613a0af8 (patch) | |
tree | 06472933a46abc17fbf752887a8cb978cfbe0bdc | |
parent | 0a56a648218be69358c434da137790f339171563 (diff) |
zac_1: added preliminary layout
-rw-r--r-- | .gitattributes | 1 | ||||
-rw-r--r-- | src/mame/drivers/zac_1.c | 4 | ||||
-rw-r--r-- | src/mame/layout/zac_1.lay | 68 | ||||
-rw-r--r-- | src/mame/mame.mak | 2 |
4 files changed, 75 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes index cd7a3cbe36f..0e696765724 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4416,6 +4416,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_1.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 diff --git a/src/mame/drivers/zac_1.c b/src/mame/drivers/zac_1.c index a933fb2cc6e..475cffe6c64 100644 --- a/src/mame/drivers/zac_1.c +++ b/src/mame/drivers/zac_1.c @@ -15,6 +15,7 @@ ToDo: #include "emu.h" #include "cpu/s2650/s2650.h" +#include "zac_1.lh" class zac_1_state : public driver_device { @@ -151,6 +152,9 @@ static MACHINE_CONFIG_START( zac_1, zac_1_state ) MCFG_CPU_IO_MAP(zac_1_io) MCFG_TIMER_ADD_PERIODIC("zac_1_inttimer", zac_1_inttimer, attotime::from_hz(200)) MCFG_TIMER_ADD_PERIODIC("zac_1_outtimer", zac_1_outtimer, attotime::from_hz(187500)) + + /* Video */ + MCFG_DEFAULT_LAYOUT(layout_zac_1) MACHINE_CONFIG_END diff --git a/src/mame/layout/zac_1.lay b/src/mame/layout/zac_1.lay new file mode 100644 index 00000000000..6258b715d47 --- /dev/null +++ b/src/mame/layout/zac_1.lay @@ -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="digit9" element="digit"> + <bounds left="30" top="145" right="54" bottom="170" /> + </bezel> + <bezel name="digit8" element="digit"> + <bounds left="64" top="145" right="88" bottom="170" /> + </bezel> + <bezel name="digit7" element="digit"> + <bounds left="230" top="145" right="254" bottom="170" /> + </bezel> + <bezel name="digit6" 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> diff --git a/src/mame/mame.mak b/src/mame/mame.mak index 0acf88f4e93..75477d2c521 100644 --- a/src/mame/mame.mak +++ b/src/mame/mame.mak @@ -2245,6 +2245,8 @@ $(DRIVERS)/wecleman.o: $(LAYOUT)/wecleman.lh $(DRIVERS)/zac2650.o: $(LAYOUT)/tinv2650.lh +$(DRIVERS)/zac_1.o: $(LAYOUT)/zac_1.lh + $(DRIVERS)/zac_proto.o: $(LAYOUT)/zac_proto.lh $(DRIVERS)/peyper.o: $(LAYOUT)/peyper.lh |