summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/samcoupe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/drivers/samcoupe.c')
-rw-r--r--src/mess/drivers/samcoupe.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mess/drivers/samcoupe.c b/src/mess/drivers/samcoupe.c
index 752e25a4af7..d3c95e80a18 100644
--- a/src/mess/drivers/samcoupe.c
+++ b/src/mess/drivers/samcoupe.c
@@ -265,27 +265,27 @@ READ8_MEMBER(samcoupe_state::samcoupe_attributes_r)
return m_attribute;
}
-static READ8_DEVICE_HANDLER( samcoupe_lpt1_busy_r )
+READ8_MEMBER(samcoupe_state::samcoupe_lpt1_busy_r)
{
- centronics_device *centronics = space.machine().device<centronics_device>("lpt1");
+ centronics_device *centronics = machine().device<centronics_device>("lpt1");
return centronics->busy_r();
}
-static WRITE8_DEVICE_HANDLER( samcoupe_lpt1_strobe_w )
+WRITE8_MEMBER(samcoupe_state::samcoupe_lpt1_strobe_w)
{
- centronics_device *centronics = space.machine().device<centronics_device>("lpt1");
+ centronics_device *centronics = machine().device<centronics_device>("lpt1");
centronics->strobe_w(data);
}
-static READ8_DEVICE_HANDLER( samcoupe_lpt2_busy_r )
+READ8_MEMBER(samcoupe_state::samcoupe_lpt2_busy_r)
{
- centronics_device *centronics = space.machine().device<centronics_device>("lpt2");
+ centronics_device *centronics = machine().device<centronics_device>("lpt2");
return centronics->busy_r();
}
-static WRITE8_DEVICE_HANDLER( samcoupe_lpt2_strobe_w )
+WRITE8_MEMBER(samcoupe_state::samcoupe_lpt2_strobe_w)
{
- centronics_device *centronics = space.machine().device<centronics_device>("lpt2");
+ centronics_device *centronics = machine().device<centronics_device>("lpt2");
centronics->strobe_w(data);
}
@@ -305,9 +305,9 @@ static ADDRESS_MAP_START( samcoupe_io, AS_IO, 8, samcoupe_state )
AM_RANGE(0x0080, 0x0081) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_WRITE(samcoupe_ext_mem_w)
AM_RANGE(0x00e0, 0x00e7) AM_MIRROR(0xff10) AM_MASK(0xffff) AM_READWRITE(samcoupe_disk_r, samcoupe_disk_w)
AM_RANGE(0x00e8, 0x00e8) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_DEVWRITE("lpt1", centronics_device, write)
- AM_RANGE(0x00e9, 0x00e9) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_DEVREADWRITE_LEGACY("lpt1", samcoupe_lpt1_busy_r, samcoupe_lpt1_strobe_w)
+ AM_RANGE(0x00e9, 0x00e9) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_READWRITE(samcoupe_lpt1_busy_r, samcoupe_lpt1_strobe_w)
AM_RANGE(0x00ea, 0x00ea) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_DEVWRITE("lpt2", centronics_device, write)
- AM_RANGE(0x00eb, 0x00eb) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_DEVREADWRITE_LEGACY("lpt2", samcoupe_lpt2_busy_r, samcoupe_lpt2_strobe_w)
+ AM_RANGE(0x00eb, 0x00eb) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_READWRITE(samcoupe_lpt2_busy_r, samcoupe_lpt2_strobe_w)
AM_RANGE(0x00f8, 0x00f8) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_READWRITE(samcoupe_pen_r, samcoupe_clut_w)
AM_RANGE(0x00f9, 0x00f9) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_READWRITE(samcoupe_status_r, samcoupe_line_int_w)
AM_RANGE(0x00fa, 0x00fa) AM_MIRROR(0xff00) AM_MASK(0xffff) AM_READWRITE(samcoupe_lmpr_r, samcoupe_lmpr_w)