mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
mb87030: fix hp98265a diagnostic error
This commit is contained in:
parent
88bb31de2a
commit
c78d0d86dc
1 changed files with 4 additions and 3 deletions
|
@ -243,7 +243,7 @@ void mb87030_device::scsi_set_ctrl(uint32_t value, uint32_t mask)
|
|||
}
|
||||
}
|
||||
|
||||
uint32_t mb87030_device::scsi_get_ctrl(void)
|
||||
uint32_t mb87030_device::scsi_get_ctrl()
|
||||
{
|
||||
if (m_sctl & SCTL_DIAG_MODE) {
|
||||
uint32_t ret = 0;
|
||||
|
@ -280,8 +280,9 @@ void mb87030_device::step(bool timeout)
|
|||
timeout ? " timeout" : "", data,
|
||||
ctrl, m_tc);
|
||||
|
||||
if (m_sctl & SCTL_RESET_AND_DISABLE && m_state != State::Idle) {
|
||||
if ((m_sctl & SCTL_RESET_AND_DISABLE) && m_state != State::Idle) {
|
||||
scsi_set_ctrl(0, S_ALL);
|
||||
m_ssts &= ~SSTS_SPC_BUSY;
|
||||
update_state(State::Idle);
|
||||
return;
|
||||
}
|
||||
|
@ -906,7 +907,7 @@ void mb87030_device::dma_w(uint8_t data)
|
|||
step(false);
|
||||
}
|
||||
|
||||
uint8_t mb87030_device::dma_r(void)
|
||||
uint8_t mb87030_device::dma_r()
|
||||
{
|
||||
uint8_t val = m_hdb;
|
||||
|
||||
|
|
Loading…
Reference in a new issue