summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/hd44102.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/hd44102.cpp')
-rw-r--r--src/devices/video/hd44102.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/video/hd44102.cpp b/src/devices/video/hd44102.cpp
index 71e8a0fba13..3b05f1e5e69 100644
--- a/src/devices/video/hd44102.cpp
+++ b/src/devices/video/hd44102.cpp
@@ -112,13 +112,13 @@ void hd44102_device::device_reset()
// read - register read
//-------------------------------------------------
-READ8_MEMBER( hd44102_device::read )
+uint8_t hd44102_device::read(offs_t offset)
{
uint8_t data = 0;
if (m_cs2)
{
- data = (offset & 0x01) ? data_r(space, offset) : status_r(space, offset);
+ data = (offset & 0x01) ? data_r() : status_r();
}
return data;
@@ -129,11 +129,11 @@ READ8_MEMBER( hd44102_device::read )
// write - register write
//-------------------------------------------------
-WRITE8_MEMBER( hd44102_device::write )
+void hd44102_device::write(offs_t offset, uint8_t data)
{
if (m_cs2)
{
- (offset & 0x01) ? data_w(space, offset, data) : control_w(space, offset, data);
+ (offset & 0x01) ? data_w(data) : control_w(data);
}
}
@@ -142,7 +142,7 @@ WRITE8_MEMBER( hd44102_device::write )
// status_r - status read
//-------------------------------------------------
-READ8_MEMBER( hd44102_device::status_r )
+uint8_t hd44102_device::status_r()
{
return m_status;
}
@@ -152,7 +152,7 @@ READ8_MEMBER( hd44102_device::status_r )
// control_w - control write
//-------------------------------------------------
-WRITE8_MEMBER( hd44102_device::control_w )
+void hd44102_device::control_w(uint8_t data)
{
if (m_status & STATUS_BUSY) return;
@@ -213,7 +213,7 @@ WRITE8_MEMBER( hd44102_device::control_w )
// data_r - data read
//-------------------------------------------------
-READ8_MEMBER( hd44102_device::data_r )
+uint8_t hd44102_device::data_r()
{
uint8_t data = m_output;
@@ -229,7 +229,7 @@ READ8_MEMBER( hd44102_device::data_r )
// data_w - data write
//-------------------------------------------------
-WRITE8_MEMBER( hd44102_device::data_w )
+void hd44102_device::data_w(uint8_t data)
{
m_ram[m_x][m_y] = data;
@@ -241,7 +241,7 @@ WRITE8_MEMBER( hd44102_device::data_w )
// cs2_w - chip select 2 write
//-------------------------------------------------
-WRITE_LINE_MEMBER( hd44102_device::cs2_w )
+void hd44102_device::cs2_w(int state)
{
m_cs2 = state;
}