diff options
author | 2013-04-15 02:40:19 +0000 | |
---|---|---|
committer | 2013-04-15 02:40:19 +0000 | |
commit | 1aded8a1046e391e1c62fa49d92dbd94320194f6 (patch) | |
tree | af052fcac9ab83b68e6cf9449d4f6fbcae004def /src | |
parent | 5ee76835196d30c36d8d5492a19682d74cde51e7 (diff) |
ins8250: msr bits (nw)
Diffstat (limited to 'src')
-rw-r--r-- | src/emu/machine/ins8250.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/machine/ins8250.c b/src/emu/machine/ins8250.c index 0d7540a49aa..db32a7dac9b 100644 --- a/src/emu/machine/ins8250.c +++ b/src/emu/machine/ins8250.c @@ -475,22 +475,22 @@ void ins8250_uart_device::update_msr(int bit, UINT8 state) WRITE_LINE_MEMBER(ins8250_uart_device::dcd_w) { - update_msr(3, (state&1)); + update_msr(3, (state ? 1 : 0)); } WRITE_LINE_MEMBER(ins8250_uart_device::dsr_w) { - update_msr(1, (state&1)); + update_msr(1, (state ? 1 : 0)); } WRITE_LINE_MEMBER(ins8250_uart_device::ri_w) { - update_msr(2, (state&1)); + update_msr(2, (state ? 1 : 0)); } WRITE_LINE_MEMBER(ins8250_uart_device::cts_w) { - update_msr(0, (state&1)); + update_msr(0, (state ? 1 : 0)); } void ins8250_uart_device::device_start() |