From 1dd9e357a8763f45c540b77026108a5858c64e96 Mon Sep 17 00:00:00 2001 From: hap Date: Mon, 27 Apr 2015 23:13:03 +0200 Subject: h2hbaseb looks like it works, but i still need to finish the layout --- src/mess/drivers/hh_tms1k.c | 14 ++++--------- src/mess/layout/h2hbaseb.lay | 48 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 10 deletions(-) create mode 100644 src/mess/layout/h2hbaseb.lay (limited to 'src') diff --git a/src/mess/drivers/hh_tms1k.c b/src/mess/drivers/hh_tms1k.c index f8337735e51..44f9cc1b057 100644 --- a/src/mess/drivers/hh_tms1k.c +++ b/src/mess/drivers/hh_tms1k.c @@ -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 ) diff --git a/src/mess/layout/h2hbaseb.lay b/src/mess/layout/h2hbaseb.lay new file mode 100644 index 00000000000..860ee6c23b6 --- /dev/null +++ b/src/mess/layout/h2hbaseb.lay @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3-70-g09d2