summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2019-04-21 19:13:09 +1000
committer Vas Crabb <vas@vastheman.com>2019-04-21 20:03:58 +1000
commit31c495a11267aa0ce51ad588068d8274585ac741 (patch)
tree5dc318ce7fb547944fe87e3eb3d369e55ab1a545
parent27216fc1d197ca22c0b6b60d63c3684b05432227 (diff)
MT 07281
-rw-r--r--src/mame/drivers/pocketc.cpp4
-rw-r--r--src/mame/machine/pc1251.cpp8
-rw-r--r--src/mame/machine/pc1401.cpp2
3 files changed, 10 insertions, 4 deletions
diff --git a/src/mame/drivers/pocketc.cpp b/src/mame/drivers/pocketc.cpp
index d35e3ffc747..50ba0cb0d7a 100644
--- a/src/mame/drivers/pocketc.cpp
+++ b/src/mame/drivers/pocketc.cpp
@@ -4,6 +4,10 @@
Sharp pocket computers
PC1401/PC1403
PeT mess@utanet.at May 2000
+
+ pc1403 and pc1403h can be convinced to work if you hit Enter once or twice
+ as soon as it is started.
+
******************************************************************************/
#include "emu.h"
diff --git a/src/mame/machine/pc1251.cpp b/src/mame/machine/pc1251.cpp
index 7abc31af973..6f79918e5ed 100644
--- a/src/mame/machine/pc1251.cpp
+++ b/src/mame/machine/pc1251.cpp
@@ -30,9 +30,11 @@ READ8_MEMBER(pc1251_state::in_a_r)
data |= 0x02; // problem with the deg lcd
}
- for (int bit = 0, key = 1; bit < 3; bit++, key++)
- if (BIT(m_outb, bit))
- data |= m_keys[key]->read();
+ if (BIT(m_outb, 1))
+ data |= m_keys[1]->read();
+
+ if (BIT(m_outb, 2))
+ data |= m_keys[2]->read();
for (int bit = 0, key = 3; bit < 7; bit++, key++)
if (BIT(m_outa, bit))
diff --git a/src/mame/machine/pc1401.cpp b/src/mame/machine/pc1401.cpp
index e29bc1e1ce3..e9f595cacd5 100644
--- a/src/mame/machine/pc1401.cpp
+++ b/src/mame/machine/pc1401.cpp
@@ -36,7 +36,7 @@ READ8_MEMBER(pc1401_state::in_a_r)
int data = m_outa;
for (int bit = 0; bit < 5; bit++)
- if (BIT(m_outb, 0))
+ if (BIT(m_outb, bit))
data |= m_keys[bit]->read();
if (m_outb & 0x20)