diff options
Diffstat (limited to 'src/mame/drivers/maygay1b.c')
-rw-r--r-- | src/mame/drivers/maygay1b.c | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/src/mame/drivers/maygay1b.c b/src/mame/drivers/maygay1b.c index 12558dfc7ab..bfbf1858ffe 100644 --- a/src/mame/drivers/maygay1b.c +++ b/src/mame/drivers/maygay1b.c @@ -284,22 +284,14 @@ void maygay1b_state::machine_start() // setup 8 mechanical meters //////////////////////////////////////////// MechMtr_config(machine(),8); -// setup 6 default 96 half step reels /////////////////////////////////// - m_reel0->configure(&starpoint_interface_48step); - m_reel1->configure(&starpoint_interface_48step); - m_reel2->configure(&starpoint_interface_48step); - m_reel3->configure(&starpoint_interface_48step); - m_reel4->configure(&starpoint_interface_48step); - m_reel5->configure(&starpoint_interface_48step); - } WRITE8_MEMBER(maygay1b_state::reel12_w) { m_reel0->update( data & 0x0F); m_reel1->update((data>>4) & 0x0F); - awp_draw_reel(0, m_reel0); - awp_draw_reel(1, m_reel1); + awp_draw_reel("reel1", m_reel0); + awp_draw_reel("reel2", m_reel1); } WRITE8_MEMBER(maygay1b_state::reel34_w) @@ -307,8 +299,8 @@ WRITE8_MEMBER(maygay1b_state::reel34_w) m_reel2->update( data & 0x0F); m_reel3->update((data>>4) & 0x0F); - awp_draw_reel(2, m_reel2); - awp_draw_reel(3, m_reel3); + awp_draw_reel("reel3", m_reel2); + awp_draw_reel("reel4", m_reel3); } WRITE8_MEMBER(maygay1b_state::reel56_w) @@ -316,8 +308,8 @@ WRITE8_MEMBER(maygay1b_state::reel56_w) m_reel4->update( data & 0x0F); m_reel5->update((data>>4) & 0x0F); - awp_draw_reel(4, m_reel4); - awp_draw_reel(5, m_reel5); + awp_draw_reel("reel5", m_reel4); + awp_draw_reel("reel6", m_reel5); } READ8_MEMBER(maygay1b_state::m1_duart_r) @@ -624,19 +616,19 @@ MACHINE_CONFIG_START( maygay_m1, maygay1b_state ) MCFG_DEVICE_ADD("i8279_2", I8279, M1_MASTER_CLOCK/4) // unknown clock MCFG_I8279_OUT_DISP_CB(WRITE8(maygay1b_state, lamp_data_2_w)) // display A&B - MCFG_DEVICE_ADD("reel0", STEPPER, 0) + MCFG_STARPOINT_48STEP_ADD("reel0") MCFG_STEPPER_OPTIC_CALLBACK(WRITELINE(maygay1b_state, reel0_optic_cb)) - MCFG_DEVICE_ADD("reel1", STEPPER, 0) + MCFG_STARPOINT_48STEP_ADD("reel1") MCFG_STEPPER_OPTIC_CALLBACK(WRITELINE(maygay1b_state, reel1_optic_cb)) - MCFG_DEVICE_ADD("reel2", STEPPER, 0) + MCFG_STARPOINT_48STEP_ADD("reel2") MCFG_STEPPER_OPTIC_CALLBACK(WRITELINE(maygay1b_state, reel2_optic_cb)) - MCFG_DEVICE_ADD("reel3", STEPPER, 0) + MCFG_STARPOINT_48STEP_ADD("reel3") MCFG_STEPPER_OPTIC_CALLBACK(WRITELINE(maygay1b_state, reel3_optic_cb)) - MCFG_DEVICE_ADD("reel4", STEPPER, 0) + MCFG_STARPOINT_48STEP_ADD("reel4") MCFG_STEPPER_OPTIC_CALLBACK(WRITELINE(maygay1b_state, reel4_optic_cb)) - MCFG_DEVICE_ADD("reel5", STEPPER, 0) + MCFG_STARPOINT_48STEP_ADD("reel5") MCFG_STEPPER_OPTIC_CALLBACK(WRITELINE(maygay1b_state, reel5_optic_cb)) - + MCFG_NVRAM_ADD_0FILL("nvram") MCFG_DEFAULT_LAYOUT(layout_maygay1b) |