namcos1: Remove direct-update-handler-using optimization, will be done differently later [O. Galibert]

This commit is contained in:
Olivier Galibert 2015-06-23 09:03:50 +02:00
parent d42056a7c4
commit 0f15126428
2 changed files with 0 additions and 35 deletions

View File

@ -68,9 +68,6 @@ public:
int m_copy_sprites;
UINT8 m_drawmode_table[16];
DECLARE_DIRECT_UPDATE_MEMBER(direct_handler_main);
DECLARE_DIRECT_UPDATE_MEMBER(direct_handler_sub);
DECLARE_WRITE_LINE_MEMBER(subres_w);
DECLARE_WRITE8_MEMBER(irq_ack_w);
DECLARE_READ8_MEMBER(dsw_r);
@ -138,6 +135,5 @@ public:
void init_DACs();
private:
inline offs_t direct_handler(int whichcpu, direct_read_data &direct, offs_t address);
inline void get_tile_info(tile_data &tileinfo,int tile_index,UINT8 *info_vram);
};

View File

@ -488,34 +488,6 @@ WRITE8_MEMBER(namcos1_state::sound_bankswitch_w)
* *
*******************************************************************************/
// These direct handlers are merely for speed - taking two trips
// through the memory system for every opcode fetch is rather slow
DIRECT_UPDATE_MEMBER(namcos1_state::direct_handler_main)
{
return direct_handler(0, direct, address);
}
DIRECT_UPDATE_MEMBER(namcos1_state::direct_handler_sub)
{
return direct_handler(1, direct, address);
}
inline offs_t namcos1_state::direct_handler(int whichcpu, direct_read_data &direct, offs_t address)
{
offs_t remapped_address = m_c117->remap(whichcpu, address);
// if not in ROM, return
if (remapped_address < 0x400000) return address;
// calculate the base of the 8KB ROM page
remapped_address &= 0x3fe000;
direct.explicit_configure(address & 0xe000, address | 0x1fff, 0x1fff, &m_rom[remapped_address]);
return ~0;
}
WRITE_LINE_MEMBER(namcos1_state::subres_w)
{
// logerror("reset control pc=%04x %02x\n",space.device().safe_pc(),data);
@ -641,9 +613,6 @@ void namcos1_state::driver_init()
}
}
m_maincpu->space(AS_PROGRAM).set_direct_update_handler(direct_update_delegate(FUNC(namcos1_state::direct_handler_main), this));
m_subcpu->space(AS_PROGRAM).set_direct_update_handler(direct_update_delegate(FUNC(namcos1_state::direct_handler_sub), this));
// kludge! see notes
m_mcu->space(AS_PROGRAM).install_write_handler(0xc000, 0xc000, write8_delegate(FUNC(namcos1_state::mcu_patch_w), this));