summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ds128x.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ds128x.cpp')
-rw-r--r--src/devices/machine/ds128x.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/devices/machine/ds128x.cpp b/src/devices/machine/ds128x.cpp
index 8292e5237f2..a4ff2c19228 100644
--- a/src/devices/machine/ds128x.cpp
+++ b/src/devices/machine/ds128x.cpp
@@ -49,12 +49,11 @@ uint8_t ds12885ext_device::read_extended(offs_t offset)
switch (offset)
{
case 0:
- case 1:
- return read(offset);
- break;
case 2:
+ return get_address();
+ case 1:
case 3:
- return read(offset - 2);
+ return data_r();
break;
default:
return 0xff;
@@ -66,16 +65,16 @@ void ds12885ext_device::write_extended(offs_t offset, uint8_t data)
switch (offset)
{
case 0:
- write(offset, data & 127);
+ address_w(data & 127);
break;
case 1:
- write(offset, data);
+ data_w(data);
break;
case 2:
- write(offset - 2, data);
+ address_w(data);
break;
case 3:
- write(offset - 2, data);
+ data_w(data);
break;
}
}