Skip to content

Commit bcf1988

Browse files
authored
mm58167: put the milliseconds digit in the high nibble of register 0 (#15860)
1 parent 11a760c commit bcf1988

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/devices/machine/mm58167.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ TIMER_CALLBACK_MEMBER(mm58167_device::clock_tick)
119119
if ((m_regs[R_CTL_IRQCONTROL] & 0x80) && m_regs[R_CNT_MONTH] != old_month) set_irq(7); // every month
120120
}
121121

122-
m_regs[R_CNT_MILLISECONDS] = time_helper::make_bcd(m_milliseconds % 10);
122+
m_regs[R_CNT_MILLISECONDS] = time_helper::make_bcd(m_milliseconds % 10) << 4;
123123
m_regs[R_CNT_HUNDTENTHS] = time_helper::make_bcd(m_milliseconds / 10);
124124

125125
// 10Hz IRQ

0 commit comments

Comments
 (0)