summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/tia.h
blob: e4ec734280d146a877b5a4c5720ebb3f552ac17b (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
#ifndef _VIDEO_TIA_H_
#define _VIDEO_TIA_H_

#define TIA_PALETTE_LENGTH				128 + 128 * 128
#define TIA_INPUT_PORT_ALWAYS_ON		0
#define TIA_INPUT_PORT_ALWAYS_OFF		0xffff
#define TIA_MAX_SCREEN_HEIGHT			342

struct tia_interface {
	read16_space_func	read_input_port;
	read8_space_func	databus_contents;
	write16_space_func	vsync_callback;
};

PALETTE_INIT( tia_NTSC );
PALETTE_INIT( tia_PAL );

VIDEO_START( tia );
SCREEN_UPDATE( tia );

READ8_HANDLER( tia_r );
WRITE8_HANDLER( tia_w );

void tia_init(running_machine &machine, const struct tia_interface* ti);

#endif /* _VIDEO_TIA_H_ */