summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine
diff options
context:
space:
mode:
author yz70s <yz70s@users.noreply.github.com>2021-08-30 19:58:53 +0200
committer yz70s <yz70s@users.noreply.github.com>2021-08-30 20:28:15 +0200
commitee32db0f9c0ff7549cb4a65c0300d8163b8049fb (patch)
tree64f464b92044429b2359c094498fd33935f24374 /src/devices/machine
parentbe6618cf19a481fd5a9929a90e27321764a99275 (diff)
8042kbdc.cpp: mouse reset answers at least one byte if mouse disabled.
Makes nforcepc bios happy.
Diffstat (limited to 'src/devices/machine')
-rw-r--r--src/devices/machine/8042kbdc.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/devices/machine/8042kbdc.cpp b/src/devices/machine/8042kbdc.cpp
index a2e29d90c4f..c86a44a1f0a 100644
--- a/src/devices/machine/8042kbdc.cpp
+++ b/src/devices/machine/8042kbdc.cpp
@@ -407,9 +407,17 @@ void kbdc8042_device::data_w(offs_t offset, uint8_t data)
m_mouse.from_transmit = 0;
m_mouse.to_transmit = 0;
m_mouse.reporting = false;
- mouse_enqueue(0xfa);
- mouse_enqueue(0xaa);
- mouse_enqueue(0x00);
+ if (m_mouse.on)
+ {
+ mouse_enqueue(0xfa);
+ mouse_enqueue(0xaa);
+ mouse_enqueue(0x00);
+ }
+ else
+ {
+ m_mouse.received = 1;
+ m_data = 0xfa;
+ }
break;
case 0xf6:
mouse_enqueue(0xfa);