Skip to content

Commit 2506679

Browse files
authored
machine/ncr5385.cpp: raise IRQ for INT_INVALID_CMD (#12524)
* - tek4404 selftest writes 0xff as command (invalid command) and expects an IRQ to be raised --------- Co-authored-by: Adam <[email protected]> Co-authored-by: hap <[email protected]>
1 parent 6c16980 commit 2506679

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: src/devices/machine/ncr5385.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,9 @@ void ncr5385_device::cmd_w(u8 data)
421421
case 0x18: case 0x19: case 0x1a: case 0x1b:
422422
case 0x1c: case 0x1d: case 0x1e: case 0x1f:
423423
// reserved
424+
LOGMASKED(LOG_COMMAND, "reserved / invalid cmd\n");
425+
m_int_status |= INT_INVALID_CMD;
426+
update_int();
424427
break;
425428
}
426429
}
@@ -814,7 +817,8 @@ void ncr5385_device::set_dreq(bool dreq)
814817

815818
void ncr5385_device::update_int()
816819
{
817-
bool const int_state = m_int_status & 0x5f;
820+
bool const int_state = m_int_status & (INT_FUNC_COMPLETE | INT_BUS_SERVICE |
821+
INT_DISCONNECTED | INT_SELECTED | INT_RESELECTED | INT_INVALID_CMD);
818822

819823
if (m_int_state != int_state)
820824
{

0 commit comments

Comments
 (0)