diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2017-06-16 22:00:15 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2017-06-16 22:00:15 -0400 |
commit | be4c4a04f0df3a30ab590387680fbd8eadc44b15 (patch) | |
tree | 56d7d5fbbdb9b4748a326ea32ec0f15571525321 | |
parent | 5c753b2a55382d2de4d92101dc724cd08475e185 (diff) |
Cleanup and kludge removal (nw)
-rw-r--r-- | src/mame/drivers/m92.cpp | 15 | ||||
-rw-r--r-- | src/mame/includes/m92.h | 2 | ||||
-rw-r--r-- | src/mame/video/m92.cpp | 3 |
3 files changed, 1 insertions, 19 deletions
diff --git a/src/mame/drivers/m92.cpp b/src/mame/drivers/m92.cpp index 0827a25adcf..f0f217d9cfb 100644 --- a/src/mame/drivers/m92.cpp +++ b/src/mame/drivers/m92.cpp @@ -927,12 +927,6 @@ GFXDECODE_END /***************************************************************************/ -void m92_state::m92_sprite_interrupt() -{ - m_upd71059c->ir1_w(1); -} - - static MACHINE_CONFIG_START( m92 ) /* basic machine hardware */ @@ -2213,14 +2207,11 @@ DRIVER_INIT_MEMBER(m92_state,m92) uint8_t *ROM = memregion("maincpu")->base(); membank("bank1")->set_base(&ROM[0xa0000]); - - m_game_kludge = 0; } /* different address map (no bank1) */ DRIVER_INIT_MEMBER(m92_state,lethalth) { - m_game_kludge = 0; } /* has bankswitching */ @@ -2230,8 +2221,6 @@ DRIVER_INIT_MEMBER(m92_state,m92_bank) membank("bank1")->configure_entries(0, 4, &ROM[0x80000], 0x20000); m_maincpu->space(AS_IO).install_write_handler(0x20, 0x21, write16_delegate(FUNC(m92_state::m92_bankswitch_w),this)); - - m_game_kludge = 0; } /* has bankswitching, has eeprom, needs sprite kludge */ @@ -2244,8 +2233,6 @@ DRIVER_INIT_MEMBER(m92_state,majtitl2) /* This game has an eeprom on the game board */ m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0xf0000, 0xf3fff, read16_delegate(FUNC(m92_state::m92_eeprom_r),this), write16_delegate(FUNC(m92_state::m92_eeprom_w),this)); - - m_game_kludge = 2; } /* TODO: figure out actual address map and other differences from real Irem h/w */ @@ -2253,8 +2240,6 @@ DRIVER_INIT_MEMBER(m92_state,ppan) { uint8_t *ROM = memregion("maincpu")->base(); membank("bank1")->set_base(&ROM[0xa0000]); - - m_game_kludge = 0; } /***************************************************************************/ diff --git a/src/mame/includes/m92.h b/src/mame/includes/m92.h index 84ae25cbc72..f2efae5d4d0 100644 --- a/src/mame/includes/m92.h +++ b/src/mame/includes/m92.h @@ -60,7 +60,6 @@ public: uint32_t m_raster_irq_position; uint16_t m_videocontrol; uint8_t m_sprite_buffer_busy; - uint8_t m_game_kludge; M92_pf_layer_info m_pf_layer[3]; uint16_t m_pf_master_control[4]; int32_t m_sprite_list; @@ -105,7 +104,6 @@ public: void ppan_draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void m92_update_scroll_positions(); void m92_draw_tiles(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect); - void m92_sprite_interrupt(); protected: virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override; diff --git a/src/mame/video/m92.cpp b/src/mame/video/m92.cpp index 61b8ce8b9b5..50b5208b8b4 100644 --- a/src/mame/video/m92.cpp +++ b/src/mame/video/m92.cpp @@ -52,8 +52,7 @@ void m92_state::device_timer(emu_timer &timer, device_timer_id id, int param, vo { case TIMER_SPRITEBUFFER: m_sprite_buffer_busy = 1; - if (m_game_kludge!=2) /* Major Title 2 doesn't like this interrupt!? */ - m92_sprite_interrupt(); + m_upd71059c->ir1_w(1); break; default: assert_always(false, "Unknown id in m92_state::device_timer"); |