summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Michael Zapf <github@mizapf.de>2020-09-28 13:09:06 +0200
committer Michael Zapf <github@mizapf.de>2020-09-28 13:10:34 +0200
commita246155098df168304a9826b17c91f6cf547b8d0 (patch)
treeb1f1bbce4895bd8bbc743cd2e6eb9c179da5112b
parent4dc5e3fc628de2e04e3110ac90c5aa2311d023ec (diff)
Fixed BQ4847 to always return 0 for its register 15; required for proper chip detection.
-rw-r--r--src/devices/machine/bq4847.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/machine/bq4847.cpp b/src/devices/machine/bq4847.cpp
index 09afd9b9424..7dd9031c814 100644
--- a/src/devices/machine/bq4847.cpp
+++ b/src/devices/machine/bq4847.cpp
@@ -305,6 +305,8 @@ uint8_t bq4847_device::read(offs_t address)
set_register(reg_flags, 0xff, false);
m_interrupt_cb(intrq_r());
}
+ else
+ if (regnum == reg_unused) value = 0; // Reg 15 is locked to 0 in BQ4847
LOGMASKED(LOG_REG, "Reg %d -> %02x\n", regnum, value);