mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
machine/upd71071.cpp: Initialize address and count registers - fixes random HDD failures in fmtowns. (#10580)
This commit is contained in:
parent
defc5c612d
commit
c57e1e7e40
@ -122,8 +122,10 @@ void upd71071_device::device_start()
|
||||
|
||||
m_reg.device_control = 0;
|
||||
m_reg.mask = 0x0f; // mask all channels
|
||||
for (int x = 0; x < 4; x++)
|
||||
m_reg.mode_control[x] = 0;
|
||||
|
||||
std::fill(std::begin(m_reg.address_current), std::end(m_reg.address_current), 0);
|
||||
std::fill(std::begin(m_reg.count_current), std::end(m_reg.count_current), 0);
|
||||
std::fill(std::begin(m_reg.mode_control), std::end(m_reg.mode_control), 0);
|
||||
|
||||
save_item(NAME(m_reg.initialise));
|
||||
save_item(NAME(m_reg.channel));
|
||||
|
Loading…
Reference in New Issue
Block a user