blob: 36941921f711c28433fb671275623fff9619755f (
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
|
/*************************************************************************
Asterix
*************************************************************************/
class asterix_state : public driver_device
{
public:
asterix_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) { }
/* memory pointers */
// UINT16 * m_paletteram; // currently this uses generic palette handling
/* video-related */
int m_sprite_colorbase;
int m_layer_colorbase[4];
int m_layerpri[3];
UINT16 m_spritebank;
int m_tilebanks[4];
int m_spritebanks[4];
/* misc */
UINT8 m_cur_control2;
UINT16 m_prot[2];
/* devices */
cpu_device *m_maincpu;
cpu_device *m_audiocpu;
device_t *m_k053260;
device_t *m_k056832;
device_t *m_k053244;
device_t *m_k053251;
DECLARE_READ16_MEMBER(control2_r);
DECLARE_WRITE16_MEMBER(control2_w);
DECLARE_WRITE8_MEMBER(sound_arm_nmi_w);
DECLARE_WRITE16_MEMBER(sound_irq_w);
DECLARE_WRITE16_MEMBER(protection_w);
DECLARE_WRITE16_MEMBER(asterix_spritebank_w);
DECLARE_READ8_MEMBER(asterix_sound_r);
DECLARE_DRIVER_INIT(asterix);
virtual void machine_start();
virtual void machine_reset();
UINT32 screen_update_asterix(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
/*----------- defined in video/asterix.c -----------*/
extern void asterix_tile_callback(running_machine &machine, int layer, int *code, int *color, int *flags);
extern void asterix_sprite_callback(running_machine &machine, int *code, int *color, int *priority_mask);
|