summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author 0kmg <9137159+0kmg@users.noreply.github.com>2022-10-25 06:48:44 -0700
committer GitHub <noreply@github.com>2022-10-25 15:48:44 +0200
commitf727c63b169e6c5d23154447150e5548dcb1516a (patch)
treead1dc79a7ec75d85d7a4e5a76c301de751c7e8f4
parent3af062894cf5081fa5e453f4e6094c08ee559376 (diff)
machine/mos6530n.cpp: Removed old, unused io_r/io_w functions. (#10477)
-rw-r--r--src/devices/machine/mos6530n.cpp34
-rw-r--r--src/devices/machine/mos6530n.h4
2 files changed, 0 insertions, 38 deletions
diff --git a/src/devices/machine/mos6530n.cpp b/src/devices/machine/mos6530n.cpp
index 31c174f29cc..fab3833e387 100644
--- a/src/devices/machine/mos6530n.cpp
+++ b/src/devices/machine/mos6530n.cpp
@@ -75,40 +75,6 @@ void mos6532_new_device::io_map(address_map &map)
map(0x04, 0x07).mirror(0x8).w(FUNC(mos6532_new_device::edge_w));
}
-uint8_t mos6532_new_device::io_r(offs_t offset)
-{
- offset &= 0x1f;
- uint8_t ret = 0;
-
- if (offset == 0x00 || offset == 0x08 || offset == 0x10 || offset == 0x18) ret = pa_data_r();
- if (offset == 0x01 || offset == 0x09 || offset == 0x11 || offset == 0x19) ret = pa_ddr_r();
- if (offset == 0x02 || offset == 0x0a || offset == 0x12 || offset == 0x1a) ret = pb_data_r();
- if (offset == 0x03 || offset == 0x0b || offset == 0x13 || offset == 0x1b) ret = pb_ddr_r();
-
- if (offset == 0x04 || offset == 0x06 || offset == 0x14 || offset == 0x16) ret = timer_off_r();
- if (offset == 0x0c || offset == 0x0e || offset == 0x1c || offset == 0x1e) ret = timer_on_r();
-
- if (offset == 0x05 || offset == 0x07 || offset == 0x0d || offset == 0x0f) ret = irq_r();
- if (offset == 0x15 || offset == 0x17 || offset == 0x1d || offset == 0x1f) ret = irq_r();
-
- return ret;
-}
-
-void mos6532_new_device::io_w(offs_t offset, uint8_t data)
-{
- offset &= 0x1f;
-
- if (offset == 0x00 || offset == 0x08 || offset == 0x10 || offset == 0x18) pa_data_w(data);
- if (offset == 0x01 || offset == 0x09 || offset == 0x11 || offset == 0x19) pa_ddr_w(data);
- if (offset == 0x02 || offset == 0x0a || offset == 0x12 || offset == 0x1a) pb_data_w(data);
- if (offset == 0x03 || offset == 0x0b || offset == 0x13 || offset == 0x1b) pb_ddr_w(data);
- if (offset == 0x14 || offset == 0x15 || offset == 0x16 || offset == 0x17) timer_off_w(offset&3, data);
- if (offset == 0x1c || offset == 0x1d || offset == 0x1e || offset == 0x1f) timer_on_w(offset&3, data);
-
- if (offset == 0x04 || offset == 0x05 || offset == 0x06 || offset == 0x07) edge_w(data);
- if (offset == 0x0c || offset == 0x0d || offset == 0x0e || offset == 0x0f) edge_w(data);
-}
-
//**************************************************************************
// LIVE DEVICE
diff --git a/src/devices/machine/mos6530n.h b/src/devices/machine/mos6530n.h
index 0f1aa96a05e..164a07031b0 100644
--- a/src/devices/machine/mos6530n.h
+++ b/src/devices/machine/mos6530n.h
@@ -222,10 +222,6 @@ public:
virtual void ram_map(address_map &map);
virtual void io_map(address_map &map);
-
- // is there a better way to access the memory map when not using m()?
- uint8_t io_r(offs_t offset);
- void io_w(offs_t offset, uint8_t data);
};