summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/samcoupe.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-09-21 08:25:27 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-09-21 08:25:27 +0000
commit1f9d1cd62092e47bdda6868f6f865ef092656742 (patch)
tree7dfd5e67f785ac1e612c38804ee868e9ef2290d0 /src/mess/machine/samcoupe.c
parent81f215089087327e3738b6e9eac2d5ee07b0e6c6 (diff)
change from device->machine() to space.machine() in device handlers in order to make next changes easier (no whatsnew)
Diffstat (limited to 'src/mess/machine/samcoupe.c')
-rw-r--r--src/mess/machine/samcoupe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/machine/samcoupe.c b/src/mess/machine/samcoupe.c
index 37332064f78..da60cfcf0c0 100644
--- a/src/mess/machine/samcoupe.c
+++ b/src/mess/machine/samcoupe.c
@@ -160,7 +160,7 @@ WRITE8_MEMBER(samcoupe_state::samcoupe_ext_mem_w)
static READ8_DEVICE_HANDLER( samcoupe_rtc_r )
{
- address_space &spaceio = device->machine().device("maincpu")->memory().space(AS_IO);
+ address_space &spaceio = space.machine().device("maincpu")->memory().space(AS_IO);
msm6242_device *rtc = dynamic_cast<msm6242_device*>(device);
return rtc->read(spaceio,offset >> 12);
}
@@ -168,7 +168,7 @@ static READ8_DEVICE_HANDLER( samcoupe_rtc_r )
static WRITE8_DEVICE_HANDLER( samcoupe_rtc_w )
{
- address_space &spaceio = device->machine().device("maincpu")->memory().space(AS_IO);
+ address_space &spaceio = space.machine().device("maincpu")->memory().space(AS_IO);
msm6242_device *rtc = dynamic_cast<msm6242_device*>(device);
rtc->write(spaceio,offset >> 12, data);
}