diff options
Diffstat (limited to 'src/devices/machine/mos6529.cpp')
-rw-r--r-- | src/devices/machine/mos6529.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/devices/machine/mos6529.cpp b/src/devices/machine/mos6529.cpp index b3eaf9d2a67..fbfe7f067ac 100644 --- a/src/devices/machine/mos6529.cpp +++ b/src/devices/machine/mos6529.cpp @@ -31,10 +31,10 @@ DEFINE_DEVICE_TYPE(MOS6529, mos6529_device, "mos6529", "MOS 6529") // mos6529_device - constructor //------------------------------------------------- -mos6529_device::mos6529_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, MOS6529, tag, owner, clock), +mos6529_device::mos6529_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : + device_t(mconfig, MOS6529, tag, owner, clock), m_input(0), - m_p_handler{{*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this}} + m_p_handler(*this) { } @@ -45,9 +45,6 @@ mos6529_device::mos6529_device(const machine_config &mconfig, const char *tag, d void mos6529_device::device_start() { - // resolve callbacks - for (int i = 0; i < 8; i++) - m_p_handler[i].resolve_safe(); } @@ -55,7 +52,7 @@ void mos6529_device::device_start() // read - //------------------------------------------------- -READ8_MEMBER( mos6529_device::read ) +uint8_t mos6529_device::read() { return m_input; } @@ -65,7 +62,7 @@ READ8_MEMBER( mos6529_device::read ) // write - //------------------------------------------------- -WRITE8_MEMBER( mos6529_device::write ) +void mos6529_device::write(uint8_t data) { for (int bit = 0; bit < 8; bit++) m_p_handler[bit](BIT(data, bit)); |