diff options
author | 2020-09-28 13:09:06 +0200 | |
---|---|---|
committer | 2020-09-28 13:10:34 +0200 | |
commit | a246155098df168304a9826b17c91f6cf547b8d0 (patch) | |
tree | b1f1bbce4895bd8bbc743cd2e6eb9c179da5112b | |
parent | 4dc5e3fc628de2e04e3110ac90c5aa2311d023ec (diff) |
Fixed BQ4847 to always return 0 for its register 15; required for proper chip detection.
-rw-r--r-- | src/devices/machine/bq4847.cpp | 2 |
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); |