Added working button-lamps + layout to Bra$il, Fashion, and New Magic Card.

This commit is contained in:
Roberto Fresca 2008-12-12 01:27:58 +00:00
parent 976643a24b
commit cd7f972c5e
4 changed files with 130 additions and 3 deletions

1
.gitattributes vendored
View File

@ -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/deadeye.lay svneol=native#text/plain
src/mame/layout/dlair.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/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/firebeat.lay svneol=native#text/plain
src/mame/layout/funworld.lay svneol=native#text/plain src/mame/layout/funworld.lay svneol=native#text/plain
src/mame/layout/galaxi.lay -text svneol=native#plain/text src/mame/layout/galaxi.lay -text svneol=native#plain/text

View File

@ -22,6 +22,7 @@ TODO:
*************************************************************************************************/ *************************************************************************************************/
#include "driver.h" #include "driver.h"
#include "fashion.lh"
static UINT16 *blit_ram; static UINT16 *blit_ram;
@ -222,6 +223,24 @@ static READ16_HANDLER( read3_r )
static WRITE16_HANDLER( write1_w ) static WRITE16_HANDLER( write1_w )
{ {
t1 = data; 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); // 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 ); 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 ) GAMEL( 19??, newmcard, 0, vidpokr2, brasil, 0, ROT0, "New High Video?", "New Magic Card", GAME_NO_SOUND, layout_fashion )
GAME( 2000, brasil, 0, brasil, brasil, 0, ROT0, "New High Video?", "Bra$il (Version 3)", GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND ) GAMEL( 2000, brasil, 0, brasil, brasil, 0, ROT0, "New High Video?", "Bra$il (Version 3)", GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND, layout_fashion )
GAME( 2000, fashion, brasil, brasil, fashion, fashion, ROT0, "New High Video?", "Fashion (Version 2.14)", GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND ) GAMEL( 2000, fashion, brasil, brasil, fashion, fashion, ROT0, "New High Video?", "Fashion (Version 2.14)", GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND, layout_fashion )

105
src/mame/layout/fashion.lay Normal file
View File

@ -0,0 +1,105 @@
<?xml version="1.0"?>
<mamelayout version="2">
<element name="L1" defstate="1">
<rect state="1">
<color red="0.0" green="1.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.0" green="0.2" blue="0.0" />
</rect>
<text string="HOLD1">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.1" width="1" height="0.8" />
</text>
</element>
<element name="L2" defstate="1">
<rect state="1">
<color red="0.0" green="1.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.0" green="0.2" blue="0.0" />
</rect>
<text string="HOLD2">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.1" width="1" height="0.8" />
</text>
</element>
<element name="L3" defstate="1">
<rect state="1">
<color red="0.0" green="1.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.0" green="0.2" blue="0.0" />
</rect>
<text string="HOLD3">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.1" width="1" height="0.8" />
</text>
</element>
<element name="L4" defstate="1">
<rect state="1">
<color red="0.0" green="1.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.0" green="0.2" blue="0.0" />
</rect>
<text string="HOLD4">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.1" width="1" height="0.8" />
</text>
</element>
<element name="L5" defstate="1">
<rect state="1">
<color red="0.0" green="1.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.0" green="0.2" blue="0.0" />
</rect>
<text string="HOLD5">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.1" width="1" height="0.8" />
</text>
</element>
<element name="L6" defstate="1">
<rect state="1">
<color red="1.0" green="0.0" blue="0.0" />
</rect>
<rect state="0">
<color red="0.3" green="0.0" blue="0.0" />
</rect>
<text string="START">
<color red="0.0" green="0.0" blue="0.0" />
<bounds x="0" y="0.1" width="1" height="0.8" />
</text>
</element>
<view name="Button Lamps">
<screen index="0">
<bounds left="0" top="0" right="4" bottom="3" />
</screen>
<bezel name="lamp1" element="L1">
<bounds x="0.5" y="3.13" width="0.40" height="0.24" />
</bezel>
<bezel name="lamp2" element="L2">
<bounds x="1.0" y="3.13" width="0.40" height="0.24" />
</bezel>
<bezel name="lamp3" element="L3">
<bounds x="1.5" y="3.13" width="0.40" height="0.24" />
</bezel>
<bezel name="lamp4" element="L4">
<bounds x="2.0" y="3.13" width="0.40" height="0.24" />
</bezel>
<bezel name="lamp5" element="L5">
<bounds x="2.5" y="3.13" width="0.40" height="0.24" />
</bezel>
<bezel name="lamp6" element="L6">
<bounds x="3.0" y="3.13" width="0.40" height="0.24" />
</bezel>
</view>
</mamelayout>

View File

@ -1710,6 +1710,8 @@ $(DRIVERS)/atarifb.o: $(LAYOUT)/atarifb.lh \
$(DRIVERS)/avalnche.o: $(LAYOUT)/avalnche.lh $(DRIVERS)/avalnche.o: $(LAYOUT)/avalnche.lh
$(DRIVERS)/brasil.o: $(LAYOUT)/fashion.lh
$(DRIVERS)/bzone.o: $(LAYOUT)/bzone.lh $(DRIVERS)/bzone.o: $(LAYOUT)/bzone.lh
$(DRIVERS)/bfm_sc2.o: $(LAYOUT)/bfm_sc2.lh \ $(DRIVERS)/bfm_sc2.o: $(LAYOUT)/bfm_sc2.lh \