summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/luckgrln.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/luckgrln.cpp')
-rw-r--r--src/mame/drivers/luckgrln.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mame/drivers/luckgrln.cpp b/src/mame/drivers/luckgrln.cpp
index 06903edff95..1f51af1feb8 100644
--- a/src/mame/drivers/luckgrln.cpp
+++ b/src/mame/drivers/luckgrln.cpp
@@ -126,15 +126,15 @@ private:
int m_palette_count;
uint8_t m_palette_ram[0x10000];
- template<uint8_t Reel> DECLARE_WRITE8_MEMBER(reel_ram_w);
- template<uint8_t Reel> DECLARE_WRITE8_MEMBER(reel_attr_w);
+ template<uint8_t Reel> void reel_ram_w(offs_t offset, uint8_t data);
+ template<uint8_t Reel> void reel_attr_w(offs_t offset, uint8_t data);
void output_w(uint8_t data);
- DECLARE_WRITE8_MEMBER(palette_offset_low_w);
- DECLARE_WRITE8_MEMBER(palette_offset_high_w);
- DECLARE_WRITE8_MEMBER(palette_w);
- DECLARE_WRITE8_MEMBER(lamps_a_w);
- DECLARE_WRITE8_MEMBER(lamps_b_w);
- DECLARE_WRITE8_MEMBER(counters_w);
+ void palette_offset_low_w(uint8_t data);
+ void palette_offset_high_w(uint8_t data);
+ void palette_w(uint8_t data);
+ void lamps_a_w(uint8_t data);
+ void lamps_b_w(uint8_t data);
+ void counters_w(uint8_t data);
uint8_t test_r();
template<uint8_t Reel> TILE_GET_INFO_MEMBER(get_reel_tile_info);
uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
@@ -156,14 +156,14 @@ void luckgrln_state::machine_start()
}
template<uint8_t Reel>
-WRITE8_MEMBER(luckgrln_state::reel_ram_w)
+void luckgrln_state::reel_ram_w(offs_t offset, uint8_t data)
{
m_reel_ram[Reel][offset] = data;
m_reel_tilemap[Reel]->mark_tile_dirty(offset);
}
template<uint8_t Reel>
-WRITE8_MEMBER(luckgrln_state::reel_attr_w)
+void luckgrln_state::reel_attr_w(offs_t offset, uint8_t data)
{
m_reel_attr[Reel][offset] = data;
m_reel_tilemap[Reel]->mark_tile_dirty(offset);
@@ -354,17 +354,17 @@ void luckgrln_state::output_w(uint8_t data)
-WRITE8_MEMBER(luckgrln_state::palette_offset_low_w)
+void luckgrln_state::palette_offset_low_w(uint8_t data)
{
m_palette_count = data<<1;
}
-WRITE8_MEMBER(luckgrln_state::palette_offset_high_w)
+void luckgrln_state::palette_offset_high_w(uint8_t data)
{
m_palette_count = m_palette_count | data<<9;
}
-WRITE8_MEMBER(luckgrln_state::palette_w)
+void luckgrln_state::palette_w(uint8_t data)
{
m_palette_ram[m_palette_count] = data;
@@ -386,7 +386,7 @@ WRITE8_MEMBER(luckgrln_state::palette_w)
}
/* Analyzing the lamps, the game should have a 12-buttons control layout */
-WRITE8_MEMBER(luckgrln_state::lamps_a_w)
+void luckgrln_state::lamps_a_w(uint8_t data)
{
/* LAMPS A:
@@ -406,7 +406,7 @@ WRITE8_MEMBER(luckgrln_state::lamps_a_w)
m_lamps[i] = BIT(data, i);
}
-WRITE8_MEMBER(luckgrln_state::lamps_b_w)
+void luckgrln_state::lamps_b_w(uint8_t data)
{
/* LAMPS B:
@@ -423,7 +423,7 @@ WRITE8_MEMBER(luckgrln_state::lamps_b_w)
m_lamps[i + 8] = BIT(data, i);
}
-WRITE8_MEMBER(luckgrln_state::counters_w)
+void luckgrln_state::counters_w(uint8_t data)
{
/* COUNTERS: