summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hh_melps4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/hh_melps4.cpp')
-rw-r--r--src/mame/drivers/hh_melps4.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/hh_melps4.cpp b/src/mame/drivers/hh_melps4.cpp
index 724443e481b..5ca12fe7851 100644
--- a/src/mame/drivers/hh_melps4.cpp
+++ b/src/mame/drivers/hh_melps4.cpp
@@ -124,7 +124,7 @@ public:
hh_melps4_state(mconfig, type, tag)
{ }
- void prepare_display();
+ void update_display();
DECLARE_WRITE8_MEMBER(plate_w);
DECLARE_WRITE16_MEMBER(grid_w);
DECLARE_WRITE_LINE_MEMBER(speaker_w);
@@ -134,7 +134,7 @@ public:
// handlers
-void cfrogger_state::prepare_display()
+void cfrogger_state::update_display()
{
u16 grid = bitswap<16>(m_grid,15,14,13,12,0,1,2,3,4,5,6,7,8,9,10,11);
u16 plate = bitswap<16>(m_plate,12,4,13,5,14,6,15,7,3,11,2,10,1,9,0,8);
@@ -151,14 +151,14 @@ WRITE8_MEMBER(cfrogger_state::plate_w)
int mask = (offset == MELPS4_PORTS) ? 0xff : 0xf; // port S is 8-bit
int shift = (offset == MELPS4_PORTS) ? 0 : (offset + 1) * 4;
m_plate = (m_plate & ~(mask << shift)) | (data << shift);
- prepare_display();
+ update_display();
}
WRITE16_MEMBER(cfrogger_state::grid_w)
{
// D0-D11: vfd grid
m_grid = data;
- prepare_display();
+ update_display();
}
WRITE_LINE_MEMBER(cfrogger_state::speaker_w)
@@ -249,7 +249,7 @@ public:
hh_melps4_state(mconfig, type, tag)
{ }
- void prepare_display();
+ void update_display();
DECLARE_WRITE8_MEMBER(plate_w);
DECLARE_WRITE16_MEMBER(grid_w);
DECLARE_WRITE_LINE_MEMBER(speaker_w);
@@ -259,7 +259,7 @@ public:
// handlers
-void gjungler_state::prepare_display()
+void gjungler_state::update_display()
{
u16 grid = bitswap<16>(m_grid,15,14,13,12,11,10,9,8,7,6,5,4,3,2,0,1);
u32 plate = bitswap<24>(m_plate,23,22,21,20,19,18,8,9,10,11,13,16,15,14,13,12,7,0,6,1,5,2,4,3) | 0x2000;
@@ -276,14 +276,14 @@ WRITE8_MEMBER(gjungler_state::plate_w)
int mask = (offset == MELPS4_PORTS) ? 0xff : 0xf; // port S is 8-bit
int shift = (offset == MELPS4_PORTS) ? 0 : (offset + 1) * 4;
m_plate = (m_plate & ~(mask << shift)) | (data << shift);
- prepare_display();
+ update_display();
}
WRITE16_MEMBER(gjungler_state::grid_w)
{
// D0-D11: vfd grid
m_grid = data;
- prepare_display();
+ update_display();
}
WRITE_LINE_MEMBER(gjungler_state::speaker_w)