
#define PIXMAP_COLOR_BASE  (16 + 32)
#define BITMAPRAM_SIZE      0x6000


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

	dogfgt_state(running_machine &machine) { }

	/* memory pointers */
	UINT8 *    bgvideoram;
	UINT8 *    spriteram;
	UINT8 *    sharedram;
//  UINT8 *    paletteram;  // currently this uses generic palette handling
	size_t     spriteram_size;

	/* video-related */
	bitmap_t  *pixbitmap;
	tilemap_t   *bg_tilemap;
	UINT8     *bitmapram;
	int       bm_plane, pixcolor;
	int       scroll[4];
	int       lastflip, lastpixcolor;

	/* sound-related */
	int       soundlatch, last_snd_ctrl;

	/* devices */
	running_device *subcpu;
};


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

WRITE8_HANDLER( dogfgt_plane_select_w );
READ8_HANDLER( dogfgt_bitmapram_r );
WRITE8_HANDLER( dogfgt_bitmapram_w );
WRITE8_HANDLER( dogfgt_bgvideoram_w );
WRITE8_HANDLER( dogfgt_scroll_w );
WRITE8_HANDLER( dogfgt_1800_w );

PALETTE_INIT( dogfgt );
VIDEO_START( dogfgt );
VIDEO_UPDATE( dogfgt );
