mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
h2hbaseb looks like it works, but i still need to finish the layout
This commit is contained in:
parent
2f3108d29d
commit
1dd9e357a8
@ -98,6 +98,7 @@
|
||||
#include "elecdet.lh"
|
||||
#include "gjackpot.lh"
|
||||
#include "gpoker.lh"
|
||||
#include "h2hbaseb.lh"
|
||||
#include "h2hfootb.lh"
|
||||
#include "mathmagi.lh"
|
||||
#include "merlin.lh" // clickable
|
||||
@ -631,8 +632,6 @@ MACHINE_CONFIG_END
|
||||
* TMS1170NLN MP1525-N2 (die labeled MP1525)
|
||||
* 9-digit cyan VFD display, and other LEDs behind bezel, 1bit sound
|
||||
|
||||
x
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
class h2hbaseb_state : public hh_tms1k_state
|
||||
@ -658,12 +657,8 @@ protected:
|
||||
|
||||
void h2hbaseb_state::prepare_display()
|
||||
{
|
||||
// imply 7seg display
|
||||
memset(m_display_segmask, ~0, sizeof(m_display_segmask));
|
||||
|
||||
UINT16 plate = (m_r & 0x100) | ((m_r & 0x400) ? m_o : 0);
|
||||
UINT16 grid = (m_r & 0xff) | (m_r >> 1 & 0x100);
|
||||
display_matrix_seg(9, 9, plate, grid, 0x7f);
|
||||
display_matrix_seg(9, 9, (m_r & 0x100) | m_o, (m_r & 0xff) | (m_r >> 1 & 0x100), 0x7f);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(h2hbaseb_state::write_r)
|
||||
@ -674,7 +669,6 @@ WRITE16_MEMBER(h2hbaseb_state::write_r)
|
||||
// R4-R7: input mux
|
||||
m_inp_mux = data >> 4 & 0xf;
|
||||
|
||||
// R10: vfd filament on
|
||||
// R0-R7,R9: select vfd digit/led
|
||||
// R8: led state
|
||||
m_r = data;
|
||||
@ -755,7 +749,7 @@ static MACHINE_CONFIG_START( h2hbaseb, h2hbaseb_state )
|
||||
MCFG_TMS1XXX_WRITE_O_CB(WRITE16(h2hbaseb_state, write_o))
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_tms1k_state, display_decay_tick, attotime::from_msec(1))
|
||||
MCFG_DEFAULT_LAYOUT(layout_hh_tms1k_test)
|
||||
MCFG_DEFAULT_LAYOUT(layout_h2hbaseb)
|
||||
|
||||
/* no video! */
|
||||
|
||||
@ -4085,7 +4079,7 @@ ROM_END
|
||||
COMP( 1980, mathmagi, 0, 0, mathmagi, mathmagi, driver_device, 0, "APF Electronics Inc.", "Mathemagician", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
|
||||
|
||||
CONS( 1979, amaztron, 0, 0, amaztron, amaztron, driver_device, 0, "Coleco", "Amaze-A-Tron", GAME_SUPPORTS_SAVE )
|
||||
CONS( 1980, h2hbaseb, 0, 0, h2hbaseb, h2hbaseb, driver_device, 0, "Coleco", "Head to Head Baseball", GAME_SUPPORTS_SAVE | GAME_NOT_WORKING )
|
||||
CONS( 1980, h2hbaseb, 0, 0, h2hbaseb, h2hbaseb, driver_device, 0, "Coleco", "Head to Head Baseball", GAME_SUPPORTS_SAVE )
|
||||
CONS( 1980, h2hfootb, 0, 0, h2hfootb, h2hfootb, driver_device, 0, "Coleco", "Head to Head Football", GAME_SUPPORTS_SAVE )
|
||||
CONS( 1981, tc4, 0, 0, tc4, tc4, driver_device, 0, "Coleco", "Total Control 4", GAME_SUPPORTS_SAVE )
|
||||
|
||||
|
48
src/mess/layout/h2hbaseb.lay
Normal file
48
src/mess/layout/h2hbaseb.lay
Normal file
@ -0,0 +1,48 @@
|
||||
<?xml version="1.0"?>
|
||||
<mamelayout version="2">
|
||||
|
||||
<!-- define elements -->
|
||||
|
||||
<element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element>
|
||||
|
||||
<element name="digit" defstate="0">
|
||||
<led7seg><color red="0.2" green="1.0" blue="0.97" /></led7seg>
|
||||
</element>
|
||||
|
||||
<element name="led" defstate="0">
|
||||
<disk state="0"><color red="0.2" green="0.05" blue="0.05" /></disk>
|
||||
<disk state="1"><color red="1.0" green="0.25" blue="0.25" /></disk>
|
||||
</element>
|
||||
|
||||
|
||||
<!-- build screen -->
|
||||
|
||||
<view name="Internal Layout">
|
||||
<bounds left="0" right="100" top="0" bottom="50" />
|
||||
<bezel element="static_black">
|
||||
<bounds left="0" right="100" top="0" bottom="50" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="digit0" element="digit"><bounds x="0" y="0" width="10" height="15" /></bezel>
|
||||
<bezel name="digit1" element="digit"><bounds x="10" y="0" width="10" height="15" /></bezel>
|
||||
<bezel name="digit2" element="digit"><bounds x="20" y="0" width="10" height="15" /></bezel>
|
||||
<bezel name="digit3" element="digit"><bounds x="30" y="0" width="10" height="15" /></bezel>
|
||||
<bezel element="digit"><bounds x="40" y="0" width="10" height="15" /></bezel>
|
||||
<bezel name="digit4" element="digit"><bounds x="50" y="0" width="10" height="15" /></bezel>
|
||||
<bezel name="digit5" element="digit"><bounds x="60" y="0" width="10" height="15" /></bezel>
|
||||
<bezel name="digit6" element="digit"><bounds x="70" y="0" width="10" height="15" /></bezel>
|
||||
<bezel name="digit7" element="digit"><bounds x="80" y="0" width="10" height="15" /></bezel>
|
||||
|
||||
<bezel name="0.8" element="led"><bounds x="0" y="20" width="4" height="4" /></bezel>
|
||||
<bezel name="1.8" element="led"><bounds x="5" y="20" width="4" height="4" /></bezel>
|
||||
<bezel name="2.8" element="led"><bounds x="10" y="20" width="4" height="4" /></bezel>
|
||||
<bezel name="3.8" element="led"><bounds x="15" y="20" width="4" height="4" /></bezel>
|
||||
<bezel name="4.8" element="led"><bounds x="20" y="20" width="4" height="4" /></bezel>
|
||||
|
||||
<bezel name="5.8" element="led"><bounds x="30" y="20" width="4" height="4" /></bezel>
|
||||
<bezel name="6.8" element="led"><bounds x="35" y="20" width="4" height="4" /></bezel>
|
||||
<bezel name="7.8" element="led"><bounds x="40" y="20" width="4" height="4" /></bezel>
|
||||
<bezel name="8.8" element="led"><bounds x="45" y="20" width="4" height="4" /></bezel>
|
||||
|
||||
</view>
|
||||
</mamelayout>
|
Loading…
Reference in New Issue
Block a user