summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h8/h8.cpp
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2024-02-11 13:30:55 +0100
committer hap <happppp@users.noreply.github.com>2024-02-11 13:31:06 +0100
commit6755bdfea9e03b0593488028121083b109d57d41 (patch)
tree29c1f8cc63eda3e36f3856b1b6b4074cc35be183 /src/devices/cpu/h8/h8.cpp
parent8bea55ce784eac4904c6170f166641fb65242082 (diff)
h8: return 0xff for unconnected digital input ports,
prisma: fill in the inputs
Diffstat (limited to 'src/devices/cpu/h8/h8.cpp')
-rw-r--r--src/devices/cpu/h8/h8.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/devices/cpu/h8/h8.cpp b/src/devices/cpu/h8/h8.cpp
index ce62b41f066..9ca2fde7e70 100644
--- a/src/devices/cpu/h8/h8.cpp
+++ b/src/devices/cpu/h8/h8.cpp
@@ -7,6 +7,8 @@
H8-300 base cpu emulation
TODO:
+ - use logmacro and be quiet by default, same for H8 peripherals that
+ currently have "static constexpr int V"
- add STBY pin (hardware standby mode)
***************************************************************************/
@@ -24,7 +26,7 @@ h8_device::h8_device(const machine_config &mconfig, device_type type, const char
m_program_config("program", ENDIANNESS_BIG, 16, 16, 0, map_delegate),
m_internal_ram(*this, "internal_ram"),
m_read_adc(*this, 0),
- m_read_port(*this, 0),
+ m_read_port(*this, 0xff),
m_write_port(*this),
m_sci(*this, "sci%u", 0),
m_sci_tx(*this),
@@ -55,7 +57,8 @@ h8_device::h8_device(const machine_config &mconfig, device_type type, const char
u16 h8_device::adc_default(int adc)
{
- logerror("read of un-hooked adc %d\n", adc);
+ if(!machine().side_effects_disabled())
+ logerror("read of un-hooked adc %d\n", adc);
return 0;
}
@@ -63,8 +66,9 @@ const char h8_device::port_names[] = "123456789abcdefg";
u8 h8_device::port_default_r(int port)
{
- logerror("read of un-hooked port %c (PC=%X)\n", port_names[port], m_PPC);
- return 0;
+ if(!machine().side_effects_disabled())
+ logerror("read of un-hooked port %c (PC=%X)\n", port_names[port], m_PPC);
+ return 0xff;
}
void h8_device::port_default_w(int port, u8 data)