summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/karnov.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/karnov.h')
-rw-r--r--src/mame/includes/karnov.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/mame/includes/karnov.h b/src/mame/includes/karnov.h
index 59eda457c98..5744dd30b56 100644
--- a/src/mame/includes/karnov.h
+++ b/src/mame/includes/karnov.h
@@ -25,7 +25,8 @@ public:
m_soundlatch(*this, "soundlatch"),
m_ram(*this, "ram"),
m_videoram(*this, "videoram"),
- m_pf_data(*this, "pf_data") { }
+ m_pf_data(*this, "pf_data"),
+ m_scroll(*this, "scroll") { }
/* devices */
required_device<cpu_device> m_maincpu;
@@ -40,12 +41,11 @@ public:
required_shared_ptr<uint16_t> m_ram;
required_shared_ptr<uint16_t> m_videoram;
required_shared_ptr<uint16_t> m_pf_data;
+ required_shared_ptr<uint16_t> m_scroll;
/* video-related */
- std::unique_ptr<bitmap_ind16> m_bitmap_f;
+ tilemap_t *m_bg_tilemap;
tilemap_t *m_fix_tilemap;
- int m_flipscreen;
- uint16_t m_scroll[2];
/* misc */
uint16_t m_i8751_return;
@@ -57,25 +57,27 @@ public:
int m_coin_mask;
int m_latch;
- DECLARE_WRITE16_MEMBER(karnov_control_w);
- DECLARE_READ16_MEMBER(karnov_control_r);
- DECLARE_WRITE16_MEMBER(karnov_videoram_w);
- DECLARE_WRITE16_MEMBER(karnov_playfield_swap_w);
+ u16 mcu_r();
+ void mcu_w(u16 data);
+ DECLARE_WRITE16_MEMBER(mcu_ack_w);
+ DECLARE_WRITE16_MEMBER(mcu_reset_w);
+ DECLARE_WRITE16_MEMBER(vint_ack_w);
+ DECLARE_WRITE16_MEMBER(videoram_w);
+ void playfield_w(offs_t offset, u16 data, u16 mem_mask);
void init_wndrplnt();
void init_karnov();
void init_karnovj();
void init_chelnovu();
void init_chelnovj();
void init_chelnov();
+ TILE_GET_INFO_MEMBER(get_bg_tile_info);
TILE_GET_INFO_MEMBER(get_fix_tile_info);
virtual void machine_start() override;
virtual void machine_reset() override;
DECLARE_VIDEO_START(karnov);
DECLARE_VIDEO_START(wndrplnt);
- uint32_t screen_update_karnov(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
DECLARE_WRITE_LINE_MEMBER(vbint_w);
- void karnov_flipscreen_w( int data );
- void draw_background( bitmap_ind16 &bitmap, const rectangle &cliprect );
void karnov_i8751_w( int data );
void wndrplnt_i8751_w( int data );
void chelnov_i8751_w( int data );