pcw16: make suspend/resume work a bit better (nw)

This commit is contained in:
cracyc 2015-05-11 22:42:11 -05:00
parent 23eeecbfb6
commit 899ee187b2
2 changed files with 1 additions and 10 deletions

View File

@ -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

View File

@ -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<intel_e28f008sa_device> m_flash0;
required_device<intel_e28f008sa_device> m_flash1;
required_device<pc_fdc_superio_device> m_fdc;
required_device<ns16550_device> m_uart2;
required_device<beep_device> m_beeper;
required_device<ram_device> m_ram;
required_device<at_keyboard_device> m_keyboard;