Skip to content

Commit aba4878

Browse files
committed
upd765.h: fix bug when writing DIO bit in _upd765_read_status()
1 parent d3693f8 commit aba4878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chips/upd765.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ static inline uint8_t _upd765_read_status(upd765_t* upd) {
661661
// NOTE: the DIO bit is associated with fifo_write and internal_drq
662662
// booleans in MAME, so it's a bit more complicated than what we do here
663663
if (upd->cmd != UPD765_CMD_WRITE_DATA) {
664-
status |= UPD765_CMD_WRITE_DATA;
664+
status |= UPD765_STATUS_DIO;
665665
}
666666
break;
667667
case UPD765_PHASE_RESULT:

0 commit comments

Comments
 (0)