From cd7f972c5e17f5a9e77ef3d6113a33dc9616742b Mon Sep 17 00:00:00 2001 From: Roberto Fresca Date: Fri, 12 Dec 2008 01:27:58 +0000 Subject: [PATCH] Added working button-lamps + layout to Bra$il, Fashion, and New Magic Card. --- .gitattributes | 1 + src/mame/drivers/brasil.c | 25 +++++++-- src/mame/layout/fashion.lay | 105 ++++++++++++++++++++++++++++++++++++ src/mame/mame.mak | 2 + 4 files changed, 130 insertions(+), 3 deletions(-) create mode 100644 src/mame/layout/fashion.lay diff --git a/.gitattributes b/.gitattributes index d877798745b..bebee5fab42 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2503,6 +2503,7 @@ src/mame/layout/darius.lay svneol=native#text/plain src/mame/layout/deadeye.lay svneol=native#text/plain src/mame/layout/dlair.lay svneol=native#text/plain src/mame/layout/elecyoyo.lay svneol=native#text/plain +src/mame/layout/fashion.lay svneol=native#text/plain src/mame/layout/firebeat.lay svneol=native#text/plain src/mame/layout/funworld.lay svneol=native#text/plain src/mame/layout/galaxi.lay -text svneol=native#plain/text diff --git a/src/mame/drivers/brasil.c b/src/mame/drivers/brasil.c index 8f1708d3910..49962e1fa75 100644 --- a/src/mame/drivers/brasil.c +++ b/src/mame/drivers/brasil.c @@ -22,6 +22,7 @@ TODO: *************************************************************************************************/ #include "driver.h" +#include "fashion.lh" static UINT16 *blit_ram; @@ -222,6 +223,24 @@ static READ16_HANDLER( read3_r ) static WRITE16_HANDLER( write1_w ) { t1 = data; +/* + - Lbits - + 7654 3210 + ========= + ---- ---x Hold1 lamp. + ---- --x- Hold2 lamp. + ---- -x-- Hold3 lamp. + ---- x--- Hold4 lamp. + ---x ---- Hold5 lamp. + --x- ---- Start lamp. +*/ + output_set_lamp_value(1, (data & 1)); /* Lamp 1 - HOLD 1 */ + output_set_lamp_value(2, (data >> 1) & 1); /* Lamp 2 - HOLD 2 */ + output_set_lamp_value(3, (data >> 2) & 1); /* Lamp 3 - HOLD 3 */ + output_set_lamp_value(4, (data >> 3) & 1); /* Lamp 4 - HOLD 4 */ + output_set_lamp_value(5, (data >> 4) & 1); /* Lamp 5 - HOLD 5 */ + output_set_lamp_value(6, (data >> 5) & 1); /* Lamp 6 - START */ + // popmessage("%04x %04x",t1,t3); } @@ -688,6 +707,6 @@ static DRIVER_INIT( fashion ) memory_install_write16_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_IO), 0x0002, 0x0003, 0, 0, fashion_write2_w ); } -GAME( 19??, newmcard, 0, vidpokr2, brasil, 0, ROT0, "New High Video?", "New Magic Card", GAME_NO_SOUND ) -GAME( 2000, brasil, 0, brasil, brasil, 0, ROT0, "New High Video?", "Bra$il (Version 3)", GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND ) -GAME( 2000, fashion, brasil, brasil, fashion, fashion, ROT0, "New High Video?", "Fashion (Version 2.14)", GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND ) +GAMEL( 19??, newmcard, 0, vidpokr2, brasil, 0, ROT0, "New High Video?", "New Magic Card", GAME_NO_SOUND, layout_fashion ) +GAMEL( 2000, brasil, 0, brasil, brasil, 0, ROT0, "New High Video?", "Bra$il (Version 3)", GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND, layout_fashion ) +GAMEL( 2000, fashion, brasil, brasil, fashion, fashion, ROT0, "New High Video?", "Fashion (Version 2.14)", GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND, layout_fashion ) diff --git a/src/mame/layout/fashion.lay b/src/mame/layout/fashion.lay new file mode 100644 index 00000000000..020e7b8bcd9 --- /dev/null +++ b/src/mame/layout/fashion.lay @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mame/mame.mak b/src/mame/mame.mak index 2b315f4d451..0f0b6475d32 100644 --- a/src/mame/mame.mak +++ b/src/mame/mame.mak @@ -1710,6 +1710,8 @@ $(DRIVERS)/atarifb.o: $(LAYOUT)/atarifb.lh \ $(DRIVERS)/avalnche.o: $(LAYOUT)/avalnche.lh +$(DRIVERS)/brasil.o: $(LAYOUT)/fashion.lh + $(DRIVERS)/bzone.o: $(LAYOUT)/bzone.lh $(DRIVERS)/bfm_sc2.o: $(LAYOUT)/bfm_sc2.lh \