summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/topcat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/topcat.cpp')
-rw-r--r--src/devices/video/topcat.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/devices/video/topcat.cpp b/src/devices/video/topcat.cpp
index da368d10339..502faffbd12 100644
--- a/src/devices/video/topcat.cpp
+++ b/src/devices/video/topcat.cpp
@@ -24,8 +24,7 @@ topcat_device::topcat_device(const machine_config &mconfig, const char *tag, dev
void topcat_device::device_start()
{
- m_int_write_func.resolve_safe();
- m_cursor_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(topcat_device::cursor_callback), this));
+ m_cursor_timer = timer_alloc(FUNC(topcat_device::cursor_callback), this);
m_cursor_timer->adjust(attotime::from_hz(3));
save_item(NAME(m_vblank));
@@ -70,7 +69,7 @@ void topcat_device::device_reset()
m_pixel_replacement_rule = TOPCAT_REPLACE_RULE_SRC;
}
-READ16_MEMBER(topcat_device::vram_r)
+uint16_t topcat_device::vram_r(offs_t offset, uint16_t mem_mask)
{
uint16_t ret = 0;
@@ -83,7 +82,7 @@ READ16_MEMBER(topcat_device::vram_r)
return ret;
}
-WRITE16_MEMBER(topcat_device::vram_w)
+void topcat_device::vram_w(offs_t offset, uint16_t data, uint16_t mem_mask)
{
if (mem_mask & m_plane_mask && (m_fb_write_enable & (m_plane_mask << 8))) {
bool src = data & m_plane_mask;
@@ -243,7 +242,7 @@ void topcat_device::update_int()
m_int_write_func((m_wmove_intrq || m_vert_retrace_intrq) ? ASSERT_LINE : CLEAR_LINE);
}
-READ16_MEMBER(topcat_device::ctrl_r)
+uint16_t topcat_device::ctrl_r(address_space &space, offs_t offset, uint16_t mem_mask)
{
if (!m_read_enable)
return 0;
@@ -338,7 +337,7 @@ READ16_MEMBER(topcat_device::ctrl_r)
return ret;
}
-WRITE16_MEMBER(topcat_device::ctrl_w)
+void topcat_device::ctrl_w(address_space &space, offs_t offset, uint16_t data, uint16_t mem_mask)
{
data &= mem_mask;
@@ -445,7 +444,7 @@ WRITE16_MEMBER(topcat_device::ctrl_w)
}
}
-WRITE_LINE_MEMBER(topcat_device::vblank_w)
+void topcat_device::vblank_w(int state)
{
if (state) {
m_vblank |= (m_plane_mask << 8);