From 531990239494d5c2c8f3cac86266078a5d845c3d Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 27 Aug 2010 09:03:57 +0000 Subject: [PATCH] Made MAME compile by adding missing H files restored from files Atari Ace sent (no whatsnew) --- .gitattributes | 4 ++++ src/mame/includes/bbusters.h | 37 ++++++++++++++++++++++++++++++++++++ src/mame/includes/mainsnk.h | 26 +++++++++++++++++++++++++ src/mame/includes/prehisle.h | 29 ++++++++++++++++++++++++++++ src/mame/includes/snk68.h | 35 ++++++++++++++++++++++++++++++++++ 5 files changed, 131 insertions(+) create mode 100644 src/mame/includes/bbusters.h create mode 100644 src/mame/includes/mainsnk.h create mode 100644 src/mame/includes/prehisle.h create mode 100644 src/mame/includes/snk68.h diff --git a/.gitattributes b/.gitattributes index b5a8106cc14..e4cd869f3fd 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2481,6 +2481,7 @@ src/mame/includes/batman.h svneol=native#text/plain src/mame/includes/battlane.h svneol=native#text/plain src/mame/includes/battlex.h svneol=native#text/plain src/mame/includes/battlnts.h svneol=native#text/plain +src/mame/includes/bbusters.h svneol=native#text/plain src/mame/includes/beathead.h svneol=native#text/plain src/mame/includes/beezer.h svneol=native#text/plain src/mame/includes/bigevglf.h svneol=native#text/plain @@ -2717,6 +2718,7 @@ src/mame/includes/macrossp.h svneol=native#text/plain src/mame/includes/madalien.h svneol=native#text/plain src/mame/includes/madmotor.h svneol=native#text/plain src/mame/includes/mainevt.h svneol=native#text/plain +src/mame/includes/mainsnk.h svneol=native#text/plain src/mame/includes/malzak.h svneol=native#text/plain src/mame/includes/mappy.h svneol=native#text/plain src/mame/includes/mario.h svneol=native#text/plain @@ -2814,6 +2816,7 @@ src/mame/includes/policetr.h svneol=native#text/plain src/mame/includes/polyplay.h svneol=native#text/plain src/mame/includes/poolshrk.h svneol=native#text/plain src/mame/includes/popper.h svneol=native#text/plain +src/mame/includes/prehisle.h svneol=native#text/plain src/mame/includes/psikyo.h svneol=native#text/plain src/mame/includes/psikyo4.h svneol=native#text/plain src/mame/includes/psikyosh.h svneol=native#text/plain @@ -2864,6 +2867,7 @@ src/mame/includes/slapstic.h svneol=native#text/plain src/mame/includes/snes.h svneol=native#text/plain src/mame/includes/snk.h svneol=native#text/plain src/mame/includes/snk6502.h svneol=native#text/plain +src/mame/includes/snk68.h svneol=native#text/plain src/mame/includes/sonson.h svneol=native#text/plain src/mame/includes/spacefb.h svneol=native#text/plain src/mame/includes/spbactn.h svneol=native#text/plain diff --git a/src/mame/includes/bbusters.h b/src/mame/includes/bbusters.h new file mode 100644 index 00000000000..816b8551146 --- /dev/null +++ b/src/mame/includes/bbusters.h @@ -0,0 +1,37 @@ +class bbusters_state : public driver_data_t +{ +public: + static driver_data_t *alloc(running_machine &machine) { return auto_alloc_clear(&machine, bbusters_state(machine)); } + + bbusters_state(running_machine &machine) + : driver_data_t(machine) { } + + UINT16 *videoram; + UINT16 *ram; + UINT16 *eprom_data; + int sound_status; + int gun_select; + + tilemap_t *fix_tilemap; + tilemap_t *pf1_tilemap; + tilemap_t *pf2_tilemap; + const UINT8 *scale_table_ptr; + UINT8 scale_line_count; + + UINT16 *pf1_data; + UINT16 *pf2_data; + UINT16 *pf1_scroll_data; + UINT16 *pf2_scroll_data; +}; + + +/*----------- defined in video/bbusters.c -----------*/ + +VIDEO_START( bbuster ); +VIDEO_START( mechatt ); +VIDEO_UPDATE( bbuster ); +VIDEO_UPDATE( mechatt ); + +WRITE16_HANDLER( bbusters_pf1_w ); +WRITE16_HANDLER( bbusters_pf2_w ); +WRITE16_HANDLER( bbusters_video_w ); diff --git a/src/mame/includes/mainsnk.h b/src/mame/includes/mainsnk.h new file mode 100644 index 00000000000..acc915a0e8a --- /dev/null +++ b/src/mame/includes/mainsnk.h @@ -0,0 +1,26 @@ +class mainsnk_state : public driver_data_t +{ +public: + static driver_data_t *alloc(running_machine &machine) { return auto_alloc_clear(&machine, mainsnk_state(machine)); } + + mainsnk_state(running_machine &machine) + : driver_data_t(machine) { } + + tilemap_t *tx_tilemap; + tilemap_t *bg_tilemap; + UINT8 *spriteram; + UINT8 *fgram; + UINT8 *bgram; + + int sound_cpu_busy; + UINT32 bg_tile_offset; +}; + + +/*----------- defined in video/mainsnk.c -----------*/ + +WRITE8_HANDLER(mainsnk_c600_w); +WRITE8_HANDLER(mainsnk_fgram_w); +WRITE8_HANDLER(mainsnk_bgram_w); +VIDEO_START(mainsnk); +VIDEO_UPDATE(mainsnk); diff --git a/src/mame/includes/prehisle.h b/src/mame/includes/prehisle.h new file mode 100644 index 00000000000..6f75416ca2a --- /dev/null +++ b/src/mame/includes/prehisle.h @@ -0,0 +1,29 @@ +class prehisle_state : public driver_data_t +{ +public: + static driver_data_t *alloc(running_machine &machine) { return auto_alloc_clear(&machine, prehisle_state(machine)); } + + prehisle_state(running_machine &machine) + : driver_data_t(machine) { } + + + UINT16 *spriteram; + UINT16 *videoram; + UINT16 *bg_videoram16; + UINT16 invert_controls; + + tilemap_t *bg2_tilemap; + tilemap_t *bg_tilemap; + tilemap_t *fg_tilemap; +}; + + +/*----------- defined in video/prehisle.c -----------*/ + +WRITE16_HANDLER( prehisle_bg_videoram16_w ); +WRITE16_HANDLER( prehisle_fg_videoram16_w ); +WRITE16_HANDLER( prehisle_control16_w ); +READ16_HANDLER( prehisle_control16_r ); + +VIDEO_START( prehisle ); +VIDEO_UPDATE( prehisle ); diff --git a/src/mame/includes/snk68.h b/src/mame/includes/snk68.h new file mode 100644 index 00000000000..43bd3b6cb76 --- /dev/null +++ b/src/mame/includes/snk68.h @@ -0,0 +1,35 @@ +class snk68_state : public driver_data_t +{ +public: + static driver_data_t *alloc(running_machine &machine) { return auto_alloc_clear(&machine, snk68_state(machine)); } + + snk68_state(running_machine &machine) + : driver_data_t(machine) { } + + int invert_controls; + int sound_status; + + UINT16* pow_fg_videoram; + + UINT16 *spriteram; + UINT16 *paletteram; + int sprite_flip_axis; + tilemap_t *fg_tilemap; + int flipscreen; + UINT32 fg_tile_offset; +}; + + +/*----------- defined in video/snk68.c -----------*/ + +VIDEO_START( pow ); +VIDEO_START( searchar ); +VIDEO_UPDATE( pow ); +WRITE16_HANDLER( pow_paletteram16_word_w ); +WRITE16_HANDLER( pow_flipscreen16_w ); +WRITE16_HANDLER( searchar_flipscreen16_w ); +READ16_HANDLER( pow_spriteram_r ); +WRITE16_HANDLER( pow_spriteram_w ); +READ16_HANDLER( pow_fg_videoram_r ); +WRITE16_HANDLER( pow_fg_videoram_w ); +WRITE16_HANDLER( searchar_fg_videoram_w );