diff options
author | 2018-08-29 12:15:12 +1000 | |
---|---|---|
committer | 2018-08-29 12:15:12 +1000 | |
commit | f05963a4514676ad47b5e7edce68a4cbff889dc7 (patch) | |
tree | c364b28ea5737a53059b718afc3da2d90fc2cf4f | |
parent | 90bf06542f1e6cfc2cf57a386be3a688a0f20e51 (diff) |
that's probably the intention... (nw)
-rw-r--r-- | src/devices/cpu/h6280/h6280.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/devices/cpu/h6280/h6280.cpp b/src/devices/cpu/h6280/h6280.cpp index 001305f619b..b30d7d5a78d 100644 --- a/src/devices/cpu/h6280/h6280.cpp +++ b/src/devices/cpu/h6280/h6280.cpp @@ -238,7 +238,7 @@ void h6280_device::device_add_mconfig(machine_config &config) void h6280_device::device_start() { - m_port_in_cb.resolve_safe(0xff); + m_port_in_cb.resolve(); m_port_out_cb.resolve_safe(); // register our state for the debugger @@ -2589,16 +2589,15 @@ READ8_MEMBER( h6280_device::port_r ) { if (!m_port_in_cb.isnull()) return m_port_in_cb(); - - return m_io_buffer; + else + return m_io_buffer; } WRITE8_MEMBER( h6280_device::port_w ) { m_io_buffer = data; - if (!m_port_out_cb.isnull()) - m_port_out_cb(data); + m_port_out_cb(data); } READ8_MEMBER( h6280_device::io_buffer_r ) |