diff options
author | cam900 <dbtlrchl@naver.com> | 2020-04-14 22:18:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 09:18:12 -0400 |
commit | 07b3e2b708712922cf42765df5c1c76c3de25d54 (patch) | |
tree | 87e7a07486cac027fd81d017224bd2e8ecd74c38 /src/mame/includes/nmk16.h | |
parent | 734d5388f977b56b1737915249e3bdc1c0e2da5c (diff) |
powerins.cpp: Reduce duplicates related to nmk16.cpp, Move subclass into nmk16.h (Similar hardware design) (#6539)
* powerins.cpp: Reduce duplicates related to nmk16.cpp, Move subclass into nmk16.h (Similar hardware design)
Add notes, Simplify handlers, Use screen raw params for bootlegs
nmk16.cpp: Use timer for sprite DMA behavior, Reduce duplicates, Fix sabotenb sprite delay, Add notes
* powerins.cpp: Fix state
Diffstat (limited to 'src/mame/includes/nmk16.h')
-rw-r--r-- | src/mame/includes/nmk16.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/includes/nmk16.h b/src/mame/includes/nmk16.h index 91c973bd946..4f5f93a5a8b 100644 --- a/src/mame/includes/nmk16.h +++ b/src/mame/includes/nmk16.h @@ -84,7 +84,6 @@ public: void init_bjtwin(); protected: - DECLARE_VIDEO_START(gunnail); TIMER_DEVICE_CALLBACK_MEMBER(nmk16_scanline); u32 screen_update_macross(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -118,6 +117,7 @@ protected: optional_ioport_array<2> m_dsw_io; optional_ioport_array<3> m_in_io; + emu_timer *m_dma_timer; int m_tilerambank; int m_sprdma_base; int mask[4*2]; @@ -173,6 +173,7 @@ protected: DECLARE_VIDEO_START(bioship); DECLARE_VIDEO_START(strahl); DECLARE_VIDEO_START(macross2); + DECLARE_VIDEO_START(gunnail); DECLARE_VIDEO_START(bjtwin); void get_colour_4bit(u32 &colour, u32 &pri_mask); void get_colour_5bit(u32 &colour, u32 &pri_mask); @@ -180,11 +181,12 @@ protected: u32 screen_update_tharrier(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update_strahl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); u32 screen_update_bjtwin(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + TIMER_CALLBACK_MEMBER(dma_callback); TIMER_DEVICE_CALLBACK_MEMBER(tdragon_mcu_sim); TIMER_DEVICE_CALLBACK_MEMBER(hachamf_mcu_sim); TIMER_DEVICE_CALLBACK_MEMBER(manybloc_scanline); void video_init(); - void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, u16 *src); void bg_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int layer = 0); void tx_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void mcu_run(u8 dsw_setting); |