summaryrefslogblamecommitdiffstatshomepage
path: root/src/mame/includes/kickgoal.h
blob: e1070c0c741d507c79600f929d9a3bd39c47c68e (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                                          


                           
                                           
 
       

                                                                                        

                                               
 
                             






                                                                                    

                           


                               

                  





                                      

                     

                                                 









                                                       
                          

                        
                          
/*************************************************************************

    Kick Goal - Action Hollywood

*************************************************************************/

#include "sound/okim6295.h"
#include "machine/eeprom.h"

class kickgoal_state : public driver_device
{
public:
	kickgoal_state(const machine_config &mconfig, device_type type, const char *tag)
		: driver_device(mconfig, type, tag),
		  m_adpcm(*this, "oki"),
		  m_eeprom(*this, "eeprom") { }

	/* memory pointers */
	UINT16 *    m_fgram;
	UINT16 *    m_bgram;
	UINT16 *    m_bg2ram;
	UINT16 *    m_scrram;
	UINT16 *    m_spriteram;
//      UINT16 *    m_paletteram;    // currently this uses generic palette handling
	size_t      m_spriteram_size;

	/* video-related */
	tilemap_t     *m_fgtm;
	tilemap_t     *m_bgtm;
	tilemap_t     *m_bg2tm;

	/* misc */
	int         m_melody_loop;
	int         m_snd_new;
	int         m_snd_sam[4];
	int         m_m6295_comm;
	int         m_m6295_bank;
	UINT16      m_m6295_key_delay;

	/* devices */
	required_device<okim6295_device> m_adpcm;
	required_device<eeprom_device> m_eeprom;
};


/*----------- defined in video/kickgoal.c -----------*/

WRITE16_HANDLER( kickgoal_fgram_w  );
WRITE16_HANDLER( kickgoal_bgram_w  );
WRITE16_HANDLER( kickgoal_bg2ram_w );

VIDEO_START( kickgoal );
SCREEN_UPDATE( kickgoal );

VIDEO_START( actionhw );
SCREEN_UPDATE( actionhw );