From da0fc0c9fe92c835a05fcee58a776446e84cbdcd Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Fri, 31 Mar 2017 18:59:44 +0200 Subject: abc80x: Remove the direct update handler, doesn't seem to change a thing [O. Galibert] --- src/mame/drivers/abc80x.cpp | 108 -------------------------------------------- src/mame/includes/abc80x.h | 4 -- 2 files changed, 112 deletions(-) diff --git a/src/mame/drivers/abc80x.cpp b/src/mame/drivers/abc80x.cpp index c64c80b9bba..05acfa7fcae 100644 --- a/src/mame/drivers/abc80x.cpp +++ b/src/mame/drivers/abc80x.cpp @@ -1580,129 +1580,21 @@ ROM_END // DRIVER INITIALIZATION //************************************************************************** -//------------------------------------------------- -// DRIVER_INIT( abc800c ) -//------------------------------------------------- - -DIRECT_UPDATE_MEMBER( abc800c_state::direct_update_handler ) -{ - if (address >= 0x7c00 && address < 0x8000) - { - direct.explicit_configure(0x7c00, 0x7fff, 0x3ff, m_rom->base() + 0x7c00); - - if (!m_fetch_charram) - { - m_fetch_charram = 1; - bankswitch(); - } - - return ~0; - } - - if (m_fetch_charram) - { - m_fetch_charram = 0; - bankswitch(); - } - - return address; -} DRIVER_INIT_MEMBER(abc800c_state,driver_init) { - m_maincpu->space(AS_PROGRAM).set_direct_update_handler(direct_update_delegate(&abc800c_state::direct_update_handler, this)); -} - - -//------------------------------------------------- -// DRIVER_INIT( abc800m ) -//------------------------------------------------- - -DIRECT_UPDATE_MEMBER( abc800m_state::direct_update_handler ) -{ - if (address >= 0x7800 && address < 0x8000) - { - direct.explicit_configure(0x7800, 0x7fff, 0x7ff, m_rom->base() + 0x7800); - - if (!m_fetch_charram) - { - m_fetch_charram = 1; - bankswitch(); - } - - return ~0; - } - - if (m_fetch_charram) - { - m_fetch_charram = 0; - bankswitch(); - } - - return address; } DRIVER_INIT_MEMBER(abc800m_state,driver_init) { - m_maincpu->space(AS_PROGRAM).set_direct_update_handler(direct_update_delegate(&abc800m_state::direct_update_handler, this)); -} - - -//------------------------------------------------- -// DRIVER_INIT( abc802 ) -//------------------------------------------------- - -DIRECT_UPDATE_MEMBER( abc802_state::direct_update_handler ) -{ - if (m_lrs) - { - if (address >= 0x7800 && address < 0x8000) - { - direct.explicit_configure(0x7800, 0x7fff, 0x7ff, m_rom->base() + 0x7800); - return ~0; - } - } - - return address; } DRIVER_INIT_MEMBER(abc802_state,driver_init) { - m_maincpu->space(AS_PROGRAM).set_direct_update_handler(direct_update_delegate(&abc802_state::direct_update_handler, this)); -} - - -//------------------------------------------------- -// DRIVER_INIT( abc806 ) -//------------------------------------------------- - -DIRECT_UPDATE_MEMBER( abc806_state::direct_update_handler ) -{ - if (address >= 0x7800 && address < 0x8000) - { - direct.explicit_configure(0x7800, 0x7fff, 0x7ff, m_rom->base() + 0x7800); - - if (!m_fetch_charram) - { - m_fetch_charram = 1; - bankswitch(); - } - - return ~0; - } - - if (m_fetch_charram) - { - m_fetch_charram = 0; - bankswitch(); - } - - return address; } DRIVER_INIT_MEMBER(abc806_state,driver_init) { - m_maincpu->space(AS_PROGRAM).set_direct_update_handler(direct_update_delegate(&abc806_state::direct_update_handler, this)); } diff --git a/src/mame/includes/abc80x.h b/src/mame/includes/abc80x.h index 25dae3c1ce1..15fe5ad2f4b 100644 --- a/src/mame/includes/abc80x.h +++ b/src/mame/includes/abc80x.h @@ -177,7 +177,6 @@ public: void hr_update(bitmap_rgb32 &bitmap, const rectangle &cliprect); - DECLARE_DIRECT_UPDATE_MEMBER( direct_update_handler ); MC6845_UPDATE_ROW( abc800m_update_row ); }; @@ -206,7 +205,6 @@ public: void hr_update(bitmap_rgb32 &bitmap, const rectangle &cliprect); DECLARE_READ8_MEMBER( char_ram_r ); - DECLARE_DIRECT_UPDATE_MEMBER( direct_update_handler ); DECLARE_PALETTE_INIT( abc800c ); }; @@ -242,7 +240,6 @@ public: DECLARE_WRITE_LINE_MEMBER( lrs_w ); DECLARE_WRITE_LINE_MEMBER( mux80_40_w ); DECLARE_WRITE_LINE_MEMBER( vs_w ); - DECLARE_DIRECT_UPDATE_MEMBER( direct_update_handler ); MC6845_UPDATE_ROW( abc802_update_row ); // cpu state @@ -304,7 +301,6 @@ public: DECLARE_WRITE_LINE_MEMBER( keydtr_w ); DECLARE_WRITE_LINE_MEMBER( hs_w ); DECLARE_WRITE_LINE_MEMBER( vs_w ); - DECLARE_DIRECT_UPDATE_MEMBER( direct_update_handler ); DECLARE_PALETTE_INIT( abc806 ); MC6845_UPDATE_ROW( abc806_update_row ); -- cgit v1.2.3