From 1aded8a1046e391e1c62fa49d92dbd94320194f6 Mon Sep 17 00:00:00 2001 From: cracyc Date: Mon, 15 Apr 2013 02:40:19 +0000 Subject: [PATCH] ins8250: msr bits (nw) --- src/emu/machine/ins8250.c | 8 ++++---- 1 file 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()