From 6c976cac7d818c02e0642b78bb60a643c6d8decf Mon Sep 17 00:00:00 2001 From: Robbbert Date: Sat, 25 Aug 2012 12:06:40 +0000 Subject: zac_proto: added layout (nw) --- .gitattributes | 1 + src/mame/drivers/zac_proto.c | 10 ++++--- src/mame/layout/zac_proto.lay | 68 +++++++++++++++++++++++++++++++++++++++++++ src/mame/mame.mak | 2 ++ 4 files changed, 77 insertions(+), 4 deletions(-) create mode 100644 src/mame/layout/zac_proto.lay diff --git a/.gitattributes b/.gitattributes index 6c889b4513a..cd50230aa1f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/src/mame/drivers/zac_proto.c b/src/mame/drivers/zac_proto.c index bb298f367b8..c336bf84ea2 100644 --- a/src/mame/drivers/zac_proto.c +++ b/src/mame/drivers/zac_proto.c @@ -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 /*-------------------------------- diff --git a/src/mame/layout/zac_proto.lay b/src/mame/layout/zac_proto.lay new file mode 100644 index 00000000000..8eea6a5cea5 --- /dev/null +++ b/src/mame/layout/zac_proto.lay @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mame/mame.mak b/src/mame/mame.mak index f54d652bc14..0acf88f4e93 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_proto.o: $(LAYOUT)/zac_proto.lh + $(DRIVERS)/peyper.o: $(LAYOUT)/peyper.lh $(MACHINE)/megadriv.o: $(LAYOUT)/megacd.lh -- cgit v1.2.3