blob: 77ac3fc136e276d3c0d098c2cdf1fdfb66171628 (
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
54
55
56
|
/**********************************************************************
TI TMS9927 and compatible CRT controller emulation
Copyright Nicola Salmoria and the MAME Team.
Visit http://mamedev.org for licensing and usage restrictions.
**********************************************************************/
#ifndef __TMS9927__
#define __TMS9927__
#include "devlegcy.h"
DECLARE_LEGACY_DEVICE(TMS9927, tms9927);
DECLARE_LEGACY_DEVICE(CRT5027, crt5027);
DECLARE_LEGACY_DEVICE(CRT5037, crt5037);
DECLARE_LEGACY_DEVICE(CRT5057, crt5057);
#define MDRV_TMS9927_ADD(_tag, _clock, _config) \
MDRV_DEVICE_ADD(_tag, TMS9927, _clock) \
MDRV_DEVICE_CONFIG(_config)
#define MDRV_TMS9927_RECONFIG(_tag, _clock, _config) \
MDRV_DEVICE_MODIFY(_tag) \
MDRV_DEVICE_CLOCK(_clock) \
MDRV_DEVICE_CONFIG(_config)
/* interface */
typedef struct _tms9927_interface tms9927_interface;
struct _tms9927_interface
{
const char *screen_tag; /* screen we are acting on */
int hpixels_per_column; /* number of pixels per video memory address */
const char *selfload_region; /* name of the region with self-load data */
};
extern tms9927_interface tms9927_null_interface;
/* basic read/write handlers */
WRITE8_DEVICE_HANDLER( tms9927_w );
READ8_DEVICE_HANDLER( tms9927_r );
/* other queries */
int tms9927_screen_reset(running_device *device);
int tms9927_upscroll_offset(running_device *device);
int tms9927_cursor_bounds(running_device *device, rectangle *bounds);
#endif
|