summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/realbrk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/realbrk.h')
-rw-r--r--src/mame/includes/realbrk.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/mame/includes/realbrk.h b/src/mame/includes/realbrk.h
index 4520fb57c57..6e40143e1e0 100644
--- a/src/mame/includes/realbrk.h
+++ b/src/mame/includes/realbrk.h
@@ -7,22 +7,24 @@
class realbrk_state : public driver_device
{
public:
- realbrk_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ realbrk_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_tmp68301(*this, "tmp68301"),
m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"),
m_palette(*this, "palette"),
m_spriteram(*this, "spriteram"),
- m_vram_0(*this, "vram_0"),
- m_vram_1(*this, "vram_1"),
- m_vram_2(*this, "vram_2"),
+ m_vram(*this, "vram_%u", 0U),
m_vregs(*this, "vregs"),
m_dsw_select(*this, "dsw_select"),
m_backup_ram(*this, "backup_ram"),
- m_vram_0ras(*this, "vram_0ras"),
- m_vram_1ras(*this, "vram_1ras") { }
+ m_vram_ras(*this, "vram_%uras", 0U),
+ m_in_io(*this, "IN%u", 0U),
+ m_dsw_io(*this, "SW%u", 1U),
+ m_paddle_io(*this, "PADDLE%u", 1U),
+ m_player_io(*this, "P%u", 1U)
+ { }
void pkgnsh(machine_config &config);
void dai2kaku(machine_config &config);
@@ -37,25 +39,24 @@ private:
required_device<palette_device> m_palette;
required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint16_t> m_vram_0;
- required_shared_ptr<uint16_t> m_vram_1;
- required_shared_ptr<uint16_t> m_vram_2;
+ required_shared_ptr_array<uint16_t, 3> m_vram;
required_shared_ptr<uint16_t> m_vregs;
optional_shared_ptr<uint16_t> m_dsw_select;
optional_shared_ptr<uint16_t> m_backup_ram;
- optional_shared_ptr<uint16_t> m_vram_0ras;
- optional_shared_ptr<uint16_t> m_vram_1ras;
+ optional_shared_ptr_array<uint16_t, 2> m_vram_ras;
+
+ optional_ioport_array<2> m_in_io;
+ optional_ioport_array<4> m_dsw_io;
+ optional_ioport_array<2> m_paddle_io;
+ optional_ioport_array<2> m_player_io;
std::unique_ptr<bitmap_ind16> m_tmpbitmap0;
std::unique_ptr<bitmap_ind16> m_tmpbitmap1;
int m_disable_video;
- tilemap_t *m_tilemap_0;
- tilemap_t *m_tilemap_1;
- tilemap_t *m_tilemap_2;
+ tilemap_t *m_tilemap[3];
// common
- DECLARE_WRITE16_MEMBER(vram_0_w);
- DECLARE_WRITE16_MEMBER(vram_1_w);
+ template<int Layer> DECLARE_WRITE16_MEMBER(vram_w);
DECLARE_WRITE16_MEMBER(vram_2_w);
DECLARE_WRITE16_MEMBER(vregs_w);
@@ -71,15 +72,14 @@ private:
DECLARE_READ16_MEMBER(backup_ram_dx_r);
DECLARE_WRITE16_MEMBER(backup_ram_w);
- TILE_GET_INFO_MEMBER(get_tile_info_0);
- TILE_GET_INFO_MEMBER(get_tile_info_1);
+ template<int Layer> TILE_GET_INFO_MEMBER(get_tile_info);
TILE_GET_INFO_MEMBER(get_tile_info_2);
virtual void video_start() override;
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
uint32_t screen_update_dai2kaku(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
+ void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect, int layer);
void dai2kaku_draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect, int layer);
DECLARE_WRITE_LINE_MEMBER(vblank_irq);