mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
MT 07281
This commit is contained in:
parent
adeeb00143
commit
df172ffb13
@ -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"
|
||||
|
@ -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))
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user