summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/kyocera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/kyocera.cpp')
-rw-r--r--src/mame/drivers/kyocera.cpp40
1 files changed, 31 insertions, 9 deletions
diff --git a/src/mame/drivers/kyocera.cpp b/src/mame/drivers/kyocera.cpp
index cf0ee589e99..701fffaa459 100644
--- a/src/mame/drivers/kyocera.cpp
+++ b/src/mame/drivers/kyocera.cpp
@@ -383,7 +383,7 @@ READ8_MEMBER( pc8201_state::romrd_r )
uint8_t data = 0xff;
if (m_rom_sel)
- data = m_cas_cart->read_rom(m_rom_addr & 0x1ffff);
+ data = m_cas_cart->read_rom(space, m_rom_addr & 0x1ffff);
return data;
}
@@ -533,16 +533,32 @@ READ8_MEMBER( kc85_state::lcd_r )
{
uint8_t data = 0;
- for (uint8_t i = 0; i < 10; i++)
- data |= m_lcdc[i]->read(space, offset);
+ data |= m_lcdc0->read(space, offset);
+ data |= m_lcdc1->read(space, offset);
+ data |= m_lcdc2->read(space, offset);
+ data |= m_lcdc3->read(space, offset);
+ data |= m_lcdc4->read(space, offset);
+ data |= m_lcdc5->read(space, offset);
+ data |= m_lcdc6->read(space, offset);
+ data |= m_lcdc7->read(space, offset);
+ data |= m_lcdc8->read(space, offset);
+ data |= m_lcdc9->read(space, offset);
return data;
}
WRITE8_MEMBER( kc85_state::lcd_w )
{
- for (uint8_t i = 0; i < 10; i++)
- m_lcdc[i]->write(space, offset, data);
+ m_lcdc0->write(space, offset, data);
+ m_lcdc1->write(space, offset, data);
+ m_lcdc2->write(space, offset, data);
+ m_lcdc3->write(space, offset, data);
+ m_lcdc4->write(space, offset, data);
+ m_lcdc5->write(space, offset, data);
+ m_lcdc6->write(space, offset, data);
+ m_lcdc7->write(space, offset, data);
+ m_lcdc8->write(space, offset, data);
+ m_lcdc9->write(space, offset, data);
}
/* Memory Maps */
@@ -947,8 +963,14 @@ WRITE8_MEMBER( kc85_state::i8155_pa_w )
m_keylatch = (m_keylatch & 0x100) | data;
/* LCD */
- for (uint8_t i = 0; i < 8; i++)
- m_lcdc[i]->cs2_w(BIT(data, i));
+ m_lcdc0->cs2_w(BIT(data, 0));
+ m_lcdc1->cs2_w(BIT(data, 1));
+ m_lcdc2->cs2_w(BIT(data, 2));
+ m_lcdc3->cs2_w(BIT(data, 3));
+ m_lcdc4->cs2_w(BIT(data, 4));
+ m_lcdc5->cs2_w(BIT(data, 5));
+ m_lcdc6->cs2_w(BIT(data, 6));
+ m_lcdc7->cs2_w(BIT(data, 7));
/* RTC */
m_rtc->c0_w(BIT(data, 0));
@@ -979,8 +1001,8 @@ WRITE8_MEMBER( kc85_state::i8155_pb_w )
m_keylatch = (BIT(data, 0) << 8) | (m_keylatch & 0xff);
/* LCD */
- m_lcdc[8]->cs2_w(BIT(data, 0));
- m_lcdc[9]->cs2_w(BIT(data, 1));
+ m_lcdc8->cs2_w(BIT(data, 0));
+ m_lcdc9->cs2_w(BIT(data, 1));
/* beeper */
m_buzzer = BIT(data, 2);