summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/hd44780.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-10-31 17:04:16 +0100
committer Olivier Galibert <galibert@pobox.com>2018-11-05 15:35:07 +0100
commitcc537e30db7e3dc92c63e9eb74b43d0a9656d904 (patch)
tree8a3682112f175fad282d43662f3da506449f57cb /src/devices/video/hd44780.cpp
parentec8e3a038f515621705b8333e04fa5371320a01e (diff)
mu100: Make some noise [O. Galibert]
Two sample roms are missing, sad. Volume is not taken into account yet (because the registers are not yet understood), pan is though. Don't even think about reverb or effects :-) Current code plays a scale in a loop. Comment the timer alloc in machine_reset to kill that. Demo song (missing lots of sounds, because roms): U then > until demo then ENTER ENTER.
Diffstat (limited to 'src/devices/video/hd44780.cpp')
-rw-r--r--src/devices/video/hd44780.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/video/hd44780.cpp b/src/devices/video/hd44780.cpp
index a810e90b5f0..8a1a436befb 100644
--- a/src/devices/video/hd44780.cpp
+++ b/src/devices/video/hd44780.cpp
@@ -345,27 +345,27 @@ uint32_t hd44780_device::screen_update(screen_device &screen, bitmap_ind16 &bitm
return 0;
}
-READ8_MEMBER(hd44780_device::read)
+u8 hd44780_device::read(offs_t offset)
{
switch (offset & 0x01)
{
- case 0: return control_read(space, 0);
- case 1: return data_read(space, 0);
+ case 0: return control_read();
+ case 1: return data_read();
}
return 0;
}
-WRITE8_MEMBER(hd44780_device::write)
+void hd44780_device::write(offs_t offset, u8 data)
{
switch (offset & 0x01)
{
- case 0: control_write(space, 0, data); break;
- case 1: data_write(space, 0, data); break;
+ case 0: control_write(data); break;
+ case 1: data_write(data); break;
}
}
-WRITE8_MEMBER(hd44780_device::control_write)
+void hd44780_device::control_write(u8 data)
{
if (m_data_len == 4)
{
@@ -485,7 +485,7 @@ WRITE8_MEMBER(hd44780_device::control_write)
m_first_cmd = false;
}
-READ8_MEMBER(hd44780_device::control_read)
+u8 hd44780_device::control_read()
{
if (m_data_len == 4)
{
@@ -503,7 +503,7 @@ READ8_MEMBER(hd44780_device::control_read)
}
}
-WRITE8_MEMBER(hd44780_device::data_write)
+void hd44780_device::data_write(u8 data)
{
if (m_busy_flag)
{
@@ -543,7 +543,7 @@ WRITE8_MEMBER(hd44780_device::data_write)
set_busy_flag(41);
}
-READ8_MEMBER(hd44780_device::data_read)
+u8 hd44780_device::data_read()
{
uint8_t data = (m_active_ram == DDRAM) ? m_ddram[m_ac] : m_cgram[m_ac];