This commit is contained in:
Robbbert 2019-04-21 19:13:09 +10:00
parent adeeb00143
commit df172ffb13
3 changed files with 10 additions and 4 deletions

View File

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

View File

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

View File

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