summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-11-15 16:57:32 -0500
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-11-15 16:57:32 -0500
commit0c1e629b4a994d7a20513e184aa321ed25b2e5b0 (patch)
treee3be1a66631332acf72800db28ce7b83ea125a54 /src/mame
parent37c14da31ec9f65440b3f489db6a82b6b873c437 (diff)
replica1: Switch to bitbanged interface (nw)
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/drivers/replicator.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mame/drivers/replicator.cpp b/src/mame/drivers/replicator.cpp
index 2e1495c94db..7237b18214f 100644
--- a/src/mame/drivers/replicator.cpp
+++ b/src/mame/drivers/replicator.cpp
@@ -354,14 +354,11 @@ WRITE8_MEMBER(replicator_state::port_w)
if(changed & LCD_STROBE){
if (data & LCD_STROBE){ //STROBE positive edge
- bool RS = (shift_register_value >> 1) & 1;
- bool RW = (shift_register_value >> 2) & 1;
- bool enable = (shift_register_value >> 3) & 1;
- uint8_t lcd_data = shift_register_value & 0xF0;
-
- if (enable && RW==0){
- m_lcdc->write(RS, lcd_data);
- }
+ logerror("LCD shift register = %02X\n", shift_register_value);
+ m_lcdc->rs_w(BIT(shift_register_value, 1));
+ m_lcdc->rw_w(BIT(shift_register_value, 2));
+ m_lcdc->e_w(BIT(shift_register_value, 3));
+ m_lcdc->db_w(shift_register_value & 0xF0);
}
}
m_port_c = data;