From 899ee187b2b3e814956a95aeba1d2610c6c7c3d5 Mon Sep 17 00:00:00 2001 From: cracyc Date: Mon, 11 May 2015 22:42:11 -0500 Subject: [PATCH] pcw16: make suspend/resume work a bit better (nw) --- src/mess/drivers/pcw16.c | 9 +-------- src/mess/includes/pcw16.h | 2 -- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/mess/drivers/pcw16.c b/src/mess/drivers/pcw16.c index facffeddc48..ff81371029b 100644 --- a/src/mess/drivers/pcw16.c +++ b/src/mess/drivers/pcw16.c @@ -921,11 +921,6 @@ WRITE_LINE_MEMBER(pcw16_state::pcw16_com_interrupt_2) pcw16_refresh_ints(); } -INPUT_CHANGED_MEMBER(pcw16_state::power) -{ - m_uart2->ri_w((newval & 0x040) ? 0 : 1); -} - FLOPPY_FORMATS_MEMBER( pcw16_state::floppy_formats ) FLOPPY_PC_FORMAT FLOPPY_FORMATS_END @@ -998,9 +993,7 @@ static INPUT_PORTS_START(pcw16) /* vblank */ PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_CUSTOM) PORT_VBLANK("screen") /* power switch - default is on */ - PORT_DIPNAME(0x40, 0x40, "Power Switch/Suspend") PORT_CHANGED_MEMBER(DEVICE_SELF, pcw16_state, power, 0) - PORT_DIPSETTING(0x0, DEF_STR( Off) ) - PORT_DIPSETTING(0x40, DEF_STR( On) ) + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE) PORT_NAME("Power Switch/Suspend") PORT_WRITE_LINE_DEVICE_MEMBER("ns16550_2", ins8250_uart_device, ri_w) PORT_TOGGLE PORT_INCLUDE( at_keyboard ) /* IN4 - IN11 */ INPUT_PORTS_END diff --git a/src/mess/includes/pcw16.h b/src/mess/includes/pcw16.h index b127098e3c5..8c179950305 100644 --- a/src/mess/includes/pcw16.h +++ b/src/mess/includes/pcw16.h @@ -40,7 +40,6 @@ public: m_flash0(*this, "flash0"), m_flash1(*this, "flash1"), m_fdc(*this, "fdc"), - m_uart2(*this, "ns16550_2"), m_beeper(*this, "beeper"), m_ram(*this, RAM_TAG), m_keyboard(*this, "at_keyboard"), @@ -52,7 +51,6 @@ public: required_device m_flash0; required_device m_flash1; required_device m_fdc; - required_device m_uart2; required_device m_beeper; required_device m_ram; required_device m_keyboard;