hh_tms1k: finished internal layout for copycat

This commit is contained in:
hap 2016-04-20 20:39:57 +02:00
parent 0f2cdac736
commit 9cacc4e2bc
2 changed files with 87 additions and 11 deletions

View File

@ -4964,7 +4964,8 @@ MACHINE_CONFIG_END
known releases:
- World: Copy Cat
- USA: Follow Me, distributed by Sears
- USA(1): Follow Me, distributed by Sears
- USA(2): Electronic Repeat, distributed by Tandy
***************************************************************************/
@ -5031,7 +5032,7 @@ static INPUT_PORTS_START( copycat )
PORT_START("IN.3") // R7
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_NAME("Best Play")
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START ) PORT_NAME("Play")
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("Replay")
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
INPUT_PORTS_END
@ -5085,14 +5086,16 @@ public:
WRITE16_MEMBER(copycatm2_state::write_r)
{
// R0-R3: leds
display_matrix(4, 1, data & 0xf, 1);
display_matrix(9, 1, data, 1);
}
WRITE16_MEMBER(copycatm2_state::write_o)
{
// O0,O1: speaker out
// others: N/C
m_speaker->level_w(data & 3);
//m_speaker->level_w(data & 3);
popmessage("O = %02x", data);
}
@ -5115,7 +5118,7 @@ static MACHINE_CONFIG_START( copycatm2, copycatm2_state )
MCFG_TMS1XXX_WRITE_O_CB(WRITE16(copycatm2_state, write_o))
MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_tms1k_state, display_decay_tick, attotime::from_msec(1))
MCFG_DEFAULT_LAYOUT(layout_copycat)
MCFG_DEFAULT_LAYOUT(layout_hh_tms1k_test)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
@ -5979,7 +5982,7 @@ CONS( 1982, lostreas, 0, 0, lostreas, lostreas, driver_device, 0, "Par
CONS( 1981, tandy12, 0, 0, tandy12, tandy12, driver_device, 0, "Tandy Radio Shack", "Tandy-12: Computerized Arcade", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) // some of the minigames: ***
CONS( 1979, copycat, 0, 0, copycat, copycat, driver_device, 0, "Tiger Electronics", "Copy Cat (model 7-520)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK )
CONS( 1989, copycatm2, copycat, 0, copycatm2, copycatm2, driver_device, 0, "Tiger Electronics", "Copy Cat (model 7-522)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_NOT_WORKING )
CONS( 1989, copycatm2, copycat, 0, copycatm2, copycatm2, driver_device, 0, "Tiger Electronics", "Copy Cat (model 7-522)", MACHINE_SUPPORTS_SAVE | MACHINE_NOT_WORKING )
CONS( 1979, tbreakup, 0, 0, tbreakup, tbreakup, driver_device, 0, "Tomy", "Break Up (Tomy)", MACHINE_SUPPORTS_SAVE )
CONS( 1980, phpball, 0, 0, phpball, phpball, driver_device, 0, "Tomy", "Power House Pinball", MACHINE_SUPPORTS_SAVE | MACHINE_REQUIRES_ARTWORK )

View File

@ -3,6 +3,48 @@
<!-- define elements -->
<element name="static_black"><rect><color red="0" green="0" blue="0" /></rect></element>
<element name="static_white"><rect><color red="0.9" green="0.89" blue="0.8" /></rect></element>
<element name="static_red"><rect><color red="0.9" green="0.3" blue="0.3" /></rect></element>
<element name="static_green"><rect><color red="0.3" green="0.9" blue="0.3" /></rect></element>
<element name="static_yellow"><rect><color red="0.9" green="0.9" blue="0.3" /></rect></element>
<element name="static_orange"><rect><color red="0.9" green="0.6" blue="0.3" /></rect></element>
<element name="text_b1"><text string="REPLAY"><color red="0.9" green="0.89" blue="0.8" /></text></element>
<element name="text_b2"><text string="PLAY"><color red="0.9" green="0.89" blue="0.8" /></text></element>
<element name="text_b3"><text string="BEST PLAY"><color red="0.9" green="0.89" blue="0.8" /></text></element>
<element name="hlh" defstate="0">
<text string=" ">
<bounds x="0.0" y="0.0" width="2.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</text>
<disk state="1">
<bounds x="0.57" y="0.07" width="0.86" height="0.86" />
<color red="0.0" green="0.0" blue="0.0" />
</disk>
</element>
<element name="hlv" defstate="0">
<text string=" ">
<bounds x="0.0" y="0.0" width="1.0" height="2.0" />
<color red="0.0" green="0.0" blue="0.0" />
</text>
<disk state="1">
<bounds x="0.07" y="0.57" width="0.86" height="0.86" />
<color red="0.0" green="0.0" blue="0.0" />
</disk>
</element>
<element name="hlb" defstate="0">
<text string=" ">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</text>
<rect state="1">
<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
<color red="0.0" green="0.0" blue="0.0" />
</rect>
</element>
<element name="ledr" defstate="0">
<disk state="0"><color red="0.2" green="0.04" blue="0.04" /></disk>
<disk state="1"><color red="1.0" green="0.2" blue="0.2" /></disk>
@ -24,12 +66,43 @@
<!-- build screen -->
<view name="Internal Layout">
<bounds left="0" right="100" top="0" bottom="100" />
<bounds left="0" right="12" top="0" bottom="12" />
<bezel element="static_white">
<bounds left="-1" right="13" top="-1" bottom="13" />
</bezel>
<bezel name="0.0" element="ledg"><bounds x="1" y="1" width="1" height="1" /></bezel>
<bezel name="0.1" element="ledr"><bounds x="3" y="1" width="1" height="1" /></bezel>
<bezel name="0.2" element="ledo"><bounds x="5" y="1" width="1" height="1" /></bezel>
<bezel name="0.3" element="ledy"><bounds x="7" y="1" width="1" height="1" /></bezel>
<!-- middle part -->
<bezel element="static_black"><bounds x="4" y="4" width="4" height="4" /></bezel>
<bezel element="static_yellow"><bounds x="4.5625" y="6" width="0.5" height="0.5" /></bezel>
<bezel element="static_green"><bounds x="5.625" y="5.875" width="0.75" height="0.75" /></bezel>
<bezel element="static_yellow"><bounds x="6.9375" y="6" width="0.5" height="0.5" /></bezel>
<bezel element="hlb" inputtag="IN.3" inputmask="0x04"><bounds x="4.5625" y="6" width="0.5" height="0.5" /><color alpha="0.25" /></bezel>
<bezel element="hlb" inputtag="IN.3" inputmask="0x02"><bounds x="5.625" y="5.875" width="0.75" height="0.75" /><color alpha="0.25" /></bezel>
<bezel element="hlb" inputtag="IN.3" inputmask="0x01"><bounds x="6.9375" y="6" width="0.5" height="0.5" /><color alpha="0.25" /></bezel>
<bezel element="text_b1"><bounds x="4.0625" y="6.75" width="1.5" height="0.25" /></bezel>
<bezel element="text_b2"><bounds x="5.125" y="6.75" width="1.75" height="0.25" /></bezel>
<bezel element="text_b3"><bounds x="6.2375" y="6.75" width="1.9" height="0.25" /></bezel>
<!-- main buttons and leds -->
<bezel element="static_red"><bounds x="1" y="4" width="2" height="4" /></bezel>
<bezel element="static_yellow"><bounds x="4" y="1" width="4" height="2" /></bezel>
<bezel element="static_orange"><bounds x="9" y="4" width="2" height="4" /></bezel>
<bezel element="static_green"><bounds x="4" y="9" width="4" height="2" /></bezel>
<bezel element="hlv" inputtag="IN.0" inputmask="0x02"><bounds x="1" y="4" width="2" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hlh" inputtag="IN.0" inputmask="0x08"><bounds x="4" y="1" width="4" height="2" /><color alpha="0.15" /></bezel>
<bezel element="hlv" inputtag="IN.0" inputmask="0x04"><bounds x="9" y="4" width="2" height="4" /><color alpha="0.15" /></bezel>
<bezel element="hlh" inputtag="IN.0" inputmask="0x01"><bounds x="4" y="9" width="4" height="2" /><color alpha="0.15" /></bezel>
<bezel name="0.0" element="ledg"><bounds x="5.75" y="8.25" width="0.5" height="0.5" /></bezel>
<bezel name="0.1" element="ledr"><bounds x="3.25" y="5.75" width="0.5" height="0.5" /></bezel>
<bezel name="0.2" element="ledo"><bounds x="8.25" y="5.75" width="0.5" height="0.5" /></bezel>
<bezel name="0.3" element="ledy"><bounds x="5.75" y="3.25" width="0.5" height="0.5" /></bezel>
</view>
</mamelayout>