summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/karnov.h
blob: 746718f07ffa3578d448ffbd282811d3cd53eef1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*************************************************************************

    Karnov - Wonder Planet - Chelnov

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

typedef struct _karnov_state karnov_state;
struct _karnov_state
{
	/* memory pointers */
	UINT16 *    videoram;
	UINT16 *    ram;
	UINT16 *    pf_data;
//	UINT16 *    spriteram;	// currently this uses generic buffered spriteram

	/* video-related */
	bitmap_t    *bitmap_f;
	tilemap     *fix_tilemap;
	int         flipscreen;
	UINT16      scroll[2];

	/* misc */
	UINT16      i8751_return, i8751_needs_ack, i8751_coin_pending, i8751_command_queue;
	int         i8751_level;	// needed by chelnov
	int         microcontroller_id, coin_mask;
	int         latch;

	/* devices */
	const device_config *maincpu;
	const device_config *audiocpu;
};

enum { 
	KARNOV = 0, 
	KARNOVJ, 
	CHELNOV, 
	CHELNOVJ, 
	CHELNOVW, 
	WNDRPLNT 
};


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

WRITE16_HANDLER( karnov_playfield_swap_w );
WRITE16_HANDLER( karnov_videoram_w );

void karnov_flipscreen_w(running_machine *machine, int data);

PALETTE_INIT( karnov );
VIDEO_START( karnov );
VIDEO_START( wndrplnt );
VIDEO_UPDATE( karnov );