mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
abc80x: Remove the direct update handler, doesn't seem to change a thing [O. Galibert]
This commit is contained in:
parent
722fe16936
commit
da0fc0c9fe
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user