summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/tp84.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/tp84.h')
-rw-r--r--src/mame/includes/tp84.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/mame/includes/tp84.h b/src/mame/includes/tp84.h
index 4ccd006730b..f902bbf680c 100644
--- a/src/mame/includes/tp84.h
+++ b/src/mame/includes/tp84.h
@@ -7,10 +7,9 @@ class tp84_state : public driver_device
public:
tp84_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
+ m_maincpu(*this, "cpu1"),
m_audiocpu(*this, "audiocpu"),
m_palette_bank(*this, "palette_bank"),
- m_flipscreen_x(*this, "flipscreen_x"),
- m_flipscreen_y(*this, "flipscreen_y"),
m_scroll_x(*this, "scroll_x"),
m_scroll_y(*this, "scroll_y"),
m_bg_videoram(*this, "bg_videoram"),
@@ -22,10 +21,9 @@ public:
m_screen(*this, "screen"),
m_palette(*this, "palette") { }
+ required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_shared_ptr<uint8_t> m_palette_bank;
- required_shared_ptr<uint8_t> m_flipscreen_x;
- required_shared_ptr<uint8_t> m_flipscreen_y;
required_shared_ptr<uint8_t> m_scroll_x;
required_shared_ptr<uint8_t> m_scroll_y;
required_shared_ptr<uint8_t> m_bg_videoram;
@@ -38,8 +36,17 @@ public:
required_device<palette_device> m_palette;
tilemap_t *m_bg_tilemap;
tilemap_t *m_fg_tilemap;
+ bool m_flipscreen_x;
+ bool m_flipscreen_y;
- uint8_t m_sub_irq_mask;
+ bool m_irq_enable;
+ bool m_sub_irq_mask;
+
+ DECLARE_WRITE_LINE_MEMBER(irq_enable_w);
+ DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
+ DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
+ DECLARE_WRITE_LINE_MEMBER(flip_screen_x_w);
+ DECLARE_WRITE_LINE_MEMBER(flip_screen_y_w);
DECLARE_READ8_MEMBER(tp84_sh_timer_r);
DECLARE_WRITE8_MEMBER(tp84_filter_w);
DECLARE_WRITE8_MEMBER(tp84_sh_irqtrigger_w);
@@ -52,6 +59,7 @@ public:
virtual void video_start() override;
DECLARE_PALETTE_INIT(tp84);
uint32_t screen_update_tp84(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ INTERRUPT_GEN_MEMBER(main_vblank_irq);
INTERRUPT_GEN_MEMBER(sub_vblank_irq);
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
};