diff options
Diffstat (limited to 'src/devices/bus/isa/p1_hdc.cpp')
-rw-r--r-- | src/devices/bus/isa/p1_hdc.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/devices/bus/isa/p1_hdc.cpp b/src/devices/bus/isa/p1_hdc.cpp index 129c7a6ce37..0b4b54b49ec 100644 --- a/src/devices/bus/isa/p1_hdc.cpp +++ b/src/devices/bus/isa/p1_hdc.cpp @@ -14,8 +14,7 @@ // MACROS / CONSTANTS //************************************************************************** -//#define LOG_GENERAL (1U << 0) //defined in logmacro.h already -#define LOG_DEBUG (1U << 1) +#define LOG_DEBUG (1U << 1) //#define VERBOSE (LOG_DEBUG) //#define LOG_OUTPUT_FUNC printf @@ -82,7 +81,7 @@ const tiny_rom_entry *p1_hdc_device::device_rom_region() const //************************************************************************** -READ8_MEMBER(p1_hdc_device::p1_HDC_r) +uint8_t p1_hdc_device::p1_HDC_r(offs_t offset) { uint8_t data = 0x00; @@ -96,7 +95,7 @@ READ8_MEMBER(p1_hdc_device::p1_HDC_r) return data; } -WRITE8_MEMBER(p1_hdc_device::p1_HDC_w) +void p1_hdc_device::p1_HDC_w(offs_t offset, uint8_t data) { LOG("hdc W $%04x <- $%02x\n", offset, data); @@ -126,10 +125,8 @@ p1_hdc_device::p1_hdc_device(const machine_config &mconfig, const char *tag, dev void p1_hdc_device::device_start() { set_isa_device(); - m_isa->install_rom(this, 0xe2000, 0xe27ff, "XXX", "p1_hdc"); - m_isa->install_memory(0xd0000, 0xd0fff, - READ8_DELEGATE(p1_hdc_device, p1_HDC_r), - WRITE8_DELEGATE(p1_hdc_device, p1_HDC_w) ); + m_isa->install_rom(this, 0xe2000, 0xe27ff, "p1_hdc"); + m_isa->install_memory(0xd0000, 0xd0fff, read8sm_delegate(*this, FUNC(p1_hdc_device::p1_HDC_r)), write8sm_delegate(*this, FUNC(p1_hdc_device::p1_HDC_w))); } |