diff options
| author | 2021-06-01 19:29:37 +0700 | |
|---|---|---|
| committer | 2021-06-01 19:29:37 +0700 | |
| commit | 5c9a49355614a36a43d2ced7c6fc56d0dcc884c8 (patch) | |
| tree | 0b6a4da5a9e611f836cc127abd999150e98134f5 | |
| parent | 743dfcf9bd1757d3bdae50a04158605dff502109 (diff) | |
ns32202: fix register masks
| -rw-r--r-- | src/devices/machine/ns32202.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/machine/ns32202.cpp b/src/devices/machine/ns32202.cpp index b9349d86f06..1a84ad180e9 100644 --- a/src/devices/machine/ns32202.cpp +++ b/src/devices/machine/ns32202.cpp @@ -685,14 +685,14 @@ void ns32202_device::cctl_w(u8 data) {} // TODO: decrement l-counter } - m_cctl = data & ~(CCTL_CRUNH | CCTL_CRUNL); + m_cctl = data & ~(CCTL_CDCRH | CCTL_CDCRL); } void ns32202_device::cictl_w(u8 data) { u8 const mask = - ((data & CICTL_WENL) ? (CICTL_CERL | CICTL_CIRL | CICTL_CIEL) : 0) | - ((data & CICTL_WENH) ? (CICTL_CERH | CICTL_CIRH | CICTL_CIEH) : 0); + ((data & CICTL_WENL) ? (CICTL_CERL | CICTL_CIRL | CICTL_CIEL | CICTL_WENL) : 0) | + ((data & CICTL_WENH) ? (CICTL_CERH | CICTL_CIRH | CICTL_CIEH | CICTL_WENH) : 0); m_cictl = (m_cictl & ~mask) | (data & mask); } |
