diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2017-08-20 09:07:11 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2017-08-20 09:08:27 -0400 |
commit | b65f3e37a06b967fae9d2e7101f2a82894de1c79 (patch) | |
tree | d385eafa80ffbbaf93f3accc8db34576b2f1b703 | |
parent | 0c6b18c79574a68861e4341bfd0a139487082ec4 (diff) |
decomult: Fix Treasure Island sprites; remove stray Unicode character (nw)
-rw-r--r-- | src/mame/machine/decocass.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mame/machine/decocass.cpp b/src/mame/machine/decocass.cpp index 3ca344ef6dd..56488a60027 100644 --- a/src/mame/machine/decocass.cpp +++ b/src/mame/machine/decocass.cpp @@ -1086,8 +1086,9 @@ WRITE8_MEMBER(decocass_widel_state::decocass_widel_w) { // BIOS follows writes to here by counting out a lot of dummy reads from the // same location, probably to advance a 74HC4040 or similar counter. - // Counterintuitive though it may seem, the value written is probably just ignored. - m_widel_ctrs &= 0xff; + // Counterintuitive though it may seem, the value written is probably just ignored. + // Treasure Island depends on this clearing the lower bits as well. + m_widel_ctrs = 0; LOG(3,("%10s 6502-PC: %04x decocass_e5xx_w(%02x): $%02x -> CTRS MSB (%04x)\n", space.machine().time().as_string(6), space.device().safe_pcbase(), offset, data, m_widel_ctrs)); return; } @@ -1101,7 +1102,7 @@ WRITE8_MEMBER(decocass_widel_state::decocass_widel_w) { if (m_widel_latch) { - m_widel_ctrs = (m_widel_ctrs & 0xfff00) | data; // clears upper bits + m_widel_ctrs = (m_widel_ctrs & 0xfff00) | data; LOG(3,("%10s 6502-PC: %04x decocass_e5xx_w(%02x): $%02x -> CTRS LSB (%04x)\n", space.machine().time().as_string(6), space.device().safe_pcbase(), offset, data, m_widel_ctrs)); return; } |