mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
Cleanup. (nw)
This commit is contained in:
parent
c5ea7f4e42
commit
cd6679975b
@ -946,14 +946,14 @@ private:
|
||||
#define READ64_DELEGATE(_class, _member) read64_delegate(FUNC(_class::_member), this)
|
||||
#define WRITE64_DELEGATE(_class, _member) write64_delegate(FUNC(_class::_member), this)
|
||||
|
||||
#define READ8_DEVICE_DELEGATE(_class, _device, _member) read8_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define WRITE8_DEVICE_DELEGATE(_class, _device, _member) write8_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define READ16_DEVICE_DELEGATE(_class, _device, _member) read16_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define WRITE16_DEVICE_DELEGATE(_class, _device, _member) write16_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define READ32_DEVICE_DELEGATE(_class, _device, _member) read32_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define WRITE32_DEVICE_DELEGATE(_class, _device, _member) write32_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define READ64_DEVICE_DELEGATE(_class, _device, _member) read64_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define WRITE64_DEVICE_DELEGATE(_class, _device, _member) write64_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define READ8_DEVICE_DELEGATE(_device, _class, _member) read8_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define WRITE8_DEVICE_DELEGATE(_device, _class, _member) write8_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define READ16_DEVICE_DELEGATE(_device, _class, _member) read16_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define WRITE16_DEVICE_DELEGATE(_device, _class, _member) write16_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define READ32_DEVICE_DELEGATE(_device, _class, _member) read32_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define WRITE32_DEVICE_DELEGATE(_device, _class, _member) write32_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define READ64_DEVICE_DELEGATE(_device, _class, _member) read64_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
#define WRITE64_DEVICE_DELEGATE(_device, _class, _member) write64_delegate(FUNC(_class::_member), (_class *)_device)
|
||||
|
||||
|
||||
// helper macro for merging data with the memory mask
|
||||
|
@ -315,7 +315,7 @@ void abc806_state::bankswitch()
|
||||
|
||||
program.install_read_bank(0x7000, 0x77ff, bank_name);
|
||||
program.unmap_write(0x7000, 0x77ff);
|
||||
program.install_readwrite_handler(0x7800, 0x7fff, 0, 0, read8_delegate(FUNC(abc806_state::charram_r),this), write8_delegate(FUNC(abc806_state::charram_w),this));
|
||||
program.install_readwrite_handler(0x7800, 0x7fff, 0, 0, READ8_DELEGATE(abc806_state, charram_r), WRITE8_DELEGATE(abc806_state, charram_w));
|
||||
membank(bank_name)->set_entry(0);
|
||||
break;
|
||||
|
||||
@ -350,7 +350,7 @@ void abc806_state::bankswitch()
|
||||
if (start_addr == 0x7000)
|
||||
{
|
||||
program.install_readwrite_bank(0x7000, 0x77ff, bank_name);
|
||||
program.install_readwrite_handler(0x7800, 0x7fff, 0, 0, read8_delegate(FUNC(abc806_state::charram_r), this), write8_delegate(FUNC(abc806_state::charram_w), this));
|
||||
program.install_readwrite_handler(0x7800, 0x7fff, 0, 0, READ8_DELEGATE(abc806_state, charram_r), WRITE8_DELEGATE(abc806_state, charram_w));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ public:
|
||||
: driver_device(mconfig, type, tag) ,
|
||||
m_maincpu(*this, "maincpu") { }
|
||||
|
||||
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||
required_device<cpu_device> m_maincpu;
|
||||
};
|
||||
|
||||
@ -33,7 +33,7 @@ ADDRESS_MAP_END
|
||||
static INPUT_PORTS_START( c900 )
|
||||
INPUT_PORTS_END
|
||||
|
||||
UINT32 c900_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
UINT32 c900_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -865,11 +865,11 @@ void portfolio_state::machine_reset()
|
||||
switch (m_pid)
|
||||
{
|
||||
case PID_SERIAL:
|
||||
io.install_readwrite_handler(0x8070, 0x8077, read8_delegate(FUNC(ins8250_device::ins8250_r), (ins8250_device*)m_uart), write8_delegate(FUNC(ins8250_device::ins8250_w), (ins8250_device*)m_uart));
|
||||
io.install_readwrite_handler(0x8070, 0x8077, READ8_DEVICE_DELEGATE(m_uart, ins8250_device, ins8250_r), WRITE8_DEVICE_DELEGATE(m_uart, ins8250_device, ins8250_w));
|
||||
break;
|
||||
|
||||
case PID_PARALLEL:
|
||||
io.install_readwrite_handler(0x8078, 0x807b, read8_delegate(FUNC(i8255_device::read), (i8255_device*)m_ppi), write8_delegate(FUNC(i8255_device::write), (i8255_device*)m_ppi));
|
||||
io.install_readwrite_handler(0x8078, 0x807b, READ8_DEVICE_DELEGATE(m_ppi, i8255_device, read), WRITE8_DEVICE_DELEGATE(m_ppi, i8255_device, write));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ void tdv2324_state::video_start()
|
||||
// SCREEN_UPDATE_IND16( tdv2324 )
|
||||
//-------------------------------------------------
|
||||
|
||||
UINT32 tdv2324_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
UINT32 tdv2324_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
virtual void machine_start();
|
||||
|
||||
virtual void video_start();
|
||||
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||
};
|
||||
|
||||
/* Memory Maps */
|
||||
@ -54,7 +54,7 @@ void tek4107a_state::video_start()
|
||||
{
|
||||
}
|
||||
|
||||
UINT32 tek4107a_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
UINT32 tek4107a_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ void tiki100_state::bankswitch()
|
||||
else
|
||||
{
|
||||
/* GFXRAM, GFXRAM, RAM */
|
||||
program.install_readwrite_handler(0x0000, 0x7fff, read8_delegate(FUNC(tiki100_state::gfxram_r), this), write8_delegate(FUNC(tiki100_state::gfxram_w), this));
|
||||
program.install_readwrite_handler(0x0000, 0x7fff, READ8_DELEGATE(tiki100_state, gfxram_r), WRITE8_DELEGATE(tiki100_state, gfxram_w));
|
||||
program.install_readwrite_bank(0x8000, 0xffff, "bank3");
|
||||
|
||||
membank("bank1")->set_entry(BANK_VIDEO_RAM);
|
||||
|
@ -76,8 +76,6 @@ public:
|
||||
virtual void machine_start();
|
||||
virtual void machine_reset();
|
||||
|
||||
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
DECLARE_READ8_MEMBER( video_off_r );
|
||||
DECLARE_READ8_MEMBER( video_on_r );
|
||||
DECLARE_WRITE8_MEMBER( audio_latch_w );
|
||||
|
@ -49,8 +49,6 @@ public:
|
||||
required_ioport m_pa3;
|
||||
required_ioport m_special;
|
||||
|
||||
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
DECLARE_READ8_MEMBER( pia_r );
|
||||
DECLARE_WRITE8_MEMBER( pia_w );
|
||||
DECLARE_WRITE8_MEMBER( colorram_w );
|
||||
|
@ -121,8 +121,6 @@ public:
|
||||
virtual void machine_start();
|
||||
virtual void machine_reset();
|
||||
|
||||
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
DECLARE_WRITE8_MEMBER( ipc_w );
|
||||
DECLARE_WRITE8_MEMBER( ipc_port1_w );
|
||||
DECLARE_WRITE8_MEMBER( ipc_port2_w );
|
||||
|
@ -45,8 +45,6 @@ public:
|
||||
virtual void machine_start();
|
||||
virtual void machine_reset();
|
||||
|
||||
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
DECLARE_READ8_MEMBER( dispon_r );
|
||||
DECLARE_WRITE8_MEMBER( keylatch_w );
|
||||
DECLARE_WRITE8_MEMBER( dispon_w );
|
||||
@ -92,8 +90,6 @@ public:
|
||||
|
||||
virtual void machine_reset();
|
||||
|
||||
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
DECLARE_WRITE8_MEMBER( dma_w );
|
||||
DECLARE_READ_LINE_MEMBER( rdata_r );
|
||||
DECLARE_READ_LINE_MEMBER( bdata_r );
|
||||
|
@ -68,7 +68,7 @@ public:
|
||||
required_device<tms9927_device> m_tms;
|
||||
|
||||
virtual void video_start();
|
||||
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||
|
||||
DECLARE_READ8_MEMBER( tdv2324_main_io_30 );
|
||||
DECLARE_READ8_MEMBER( tdv2324_main_io_e6 );
|
||||
|
@ -54,8 +54,6 @@ public:
|
||||
virtual void machine_start();
|
||||
virtual void machine_reset();
|
||||
|
||||
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
DECLARE_READ8_MEMBER( vismac_r );
|
||||
DECLARE_WRITE8_MEMBER( vismac_w );
|
||||
DECLARE_READ8_MEMBER( floppy_r );
|
||||
|
@ -89,7 +89,6 @@ public:
|
||||
DECLARE_WRITE_LINE_MEMBER( drq_w );
|
||||
DECLARE_WRITE8_MEMBER( kbd_w );
|
||||
DECLARE_WRITE_LINE_MEMBER( fr_w );
|
||||
DECLARE_WRITE_LINE_MEMBER( ft_w );
|
||||
|
||||
void bankswitch(int bank);
|
||||
void update_nmi();
|
||||
|
@ -154,7 +154,7 @@ void ep64_exdos_device::device_start()
|
||||
{
|
||||
m_slot->program().install_rom(0x080000, 0x087fff, 0, 0, m_rom->base());
|
||||
|
||||
m_slot->io().install_readwrite_handler(0x10, 0x13, 0, 0x04, READ8_DEVICE_DELEGATE(wd_fdc_t, m_fdc, read), WRITE8_DEVICE_DELEGATE(wd_fdc_t, m_fdc, write));
|
||||
m_slot->io().install_readwrite_handler(0x10, 0x13, 0, 0x04, READ8_DEVICE_DELEGATE(m_fdc, wd_fdc_t, read), WRITE8_DEVICE_DELEGATE(m_fdc, wd_fdc_t, write));
|
||||
m_slot->io().install_readwrite_handler(0x18, 0x18, 0, 0x04, READ8_DELEGATE(ep64_exdos_device, read), WRITE8_DELEGATE(ep64_exdos_device, write));
|
||||
}
|
||||
|
||||
|
@ -229,7 +229,7 @@ void wdxt_gen_device::device_start()
|
||||
{
|
||||
set_isa_device();
|
||||
m_isa->install_rom(this, 0xc8000, 0xc9fff, 0, 0, "hdc", "hdc");
|
||||
m_isa->install_device(0x0320, 0x0323, 0, 0, read8_delegate(FUNC(wd11c00_17_device::io_r), (wd11c00_17_device*)m_host), write8_delegate(FUNC(wd11c00_17_device::io_w), (wd11c00_17_device*)m_host));
|
||||
m_isa->install_device(0x0320, 0x0323, 0, 0, READ8_DEVICE_DELEGATE(m_host, wd11c00_17_device, io_r), WRITE8_DEVICE_DELEGATE(m_host, wd11c00_17_device, io_w));
|
||||
m_isa->set_dma_channel(3, this, FALSE);
|
||||
}
|
||||
|
||||
|
@ -413,8 +413,8 @@ wangpc_keyboard_device::wangpc_keyboard_device(const machine_config &mconfig, co
|
||||
void wangpc_keyboard_device::device_start()
|
||||
{
|
||||
// set serial callbacks
|
||||
i8051_set_serial_tx_callback(m_maincpu, write8_delegate(FUNC(wangpc_keyboard_device::mcs51_tx_callback),this));
|
||||
i8051_set_serial_rx_callback(m_maincpu, read8_delegate(FUNC(wangpc_keyboard_device::mcs51_rx_callback),this));
|
||||
i8051_set_serial_tx_callback(m_maincpu, WRITE8_DELEGATE(wangpc_keyboard_device, mcs51_tx_callback));
|
||||
i8051_set_serial_rx_callback(m_maincpu, READ8_DELEGATE(wangpc_keyboard_device, mcs51_rx_callback));
|
||||
set_data_frame(8, 2, SERIAL_PARITY_NONE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user