
class tumbleb_state
{
public:
	static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, tumbleb_state(machine)); }

	tumbleb_state(running_machine &machine) { }

	/* memory pointers */
	UINT16 *    pf1_data;
	UINT16 *    pf2_data;
	UINT16 *    mainram;
	UINT16 *    spriteram;
	UINT16 *    control;
	size_t      spriteram_size;
//  UINT16 *    paletteram;    // currently this uses generic palette handling

	/* misc */
	int         music_command;
	int         music_bank;
	int         music_is_playing;

	/* video-related */
	tilemap_t   *pf1_tilemap,*pf1_alt_tilemap,*pf2_tilemap,*pf2_alt_tilemap;
	UINT16      control_0[8];
	int         flipscreen;
	UINT16      tilebank;
	int         sprite_xoffset;
	int         sprite_yoffset;

	/* devices */
	running_device *maincpu;
	running_device *audiocpu;
	running_device *oki;
};

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

WRITE16_HANDLER( tumblepb_pf1_data_w );
WRITE16_HANDLER( tumblepb_pf2_data_w );
WRITE16_HANDLER( fncywld_pf1_data_w );
WRITE16_HANDLER( fncywld_pf2_data_w );
WRITE16_HANDLER( tumblepb_control_0_w );
WRITE16_HANDLER( pangpang_pf1_data_w );
WRITE16_HANDLER( pangpang_pf2_data_w );

WRITE16_HANDLER( bcstory_tilebank_w );
WRITE16_HANDLER( suprtrio_tilebank_w );
WRITE16_HANDLER( chokchok_tilebank_w );
WRITE16_HANDLER( wlstar_tilebank_w );

VIDEO_START( tumblepb );
VIDEO_START( fncywld );
VIDEO_START( jumppop );
VIDEO_START( sdfight );
VIDEO_START( suprtrio );
VIDEO_START( pangpang );

VIDEO_UPDATE( tumblepb );
VIDEO_UPDATE( jumpkids );
VIDEO_UPDATE( fncywld );
VIDEO_UPDATE( jumppop );
VIDEO_UPDATE( semicom );
VIDEO_UPDATE( semicom_altoffsets );
VIDEO_UPDATE( bcstory );
VIDEO_UPDATE(semibase );
VIDEO_UPDATE( suprtrio );
VIDEO_UPDATE( pangpang );
VIDEO_UPDATE( sdfight );
