blob: a6ef24ac06e31233f382ec593ce3b583a7401f3a (
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
|
#include "video/poly.h"
struct tempsprite
{
int gfx;
int code,color;
int flipx,flipy;
int x,y;
int zoomx,zoomy;
int primask;
};
class galastrm_state : public driver_device
{
public:
galastrm_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_ram(*this,"ram"),
m_spriteram(*this,"spriteram") { }
required_shared_ptr<UINT32> m_ram;
required_shared_ptr<UINT32> m_spriteram;
UINT16 m_coin_word;
UINT16 m_frame_counter;
int m_tc0110pcr_addr;
int m_tc0610_0_addr;
int m_tc0610_1_addr;
UINT32 m_mem[2];
INT16 m_tc0610_ctrl_reg[2][8];
struct tempsprite *m_spritelist;
struct tempsprite *m_sprite_ptr_pre;
bitmap_ind16 m_tmpbitmaps;
bitmap_ind16 m_polybitmap;
poly_manager *m_poly;
int m_rsxb;
int m_rsyb;
int m_rsxoffs;
int m_rsyoffs;
DECLARE_WRITE32_MEMBER(galastrm_palette_w);
DECLARE_WRITE32_MEMBER(galastrm_tc0610_0_w);
DECLARE_WRITE32_MEMBER(galastrm_tc0610_1_w);
DECLARE_WRITE32_MEMBER(galastrm_input_w);
DECLARE_READ32_MEMBER(galastrm_adstick_ctrl_r);
DECLARE_WRITE32_MEMBER(galastrm_adstick_ctrl_w);
DECLARE_CUSTOM_INPUT_MEMBER(frame_counter_r);
DECLARE_CUSTOM_INPUT_MEMBER(coin_word_r);
virtual void video_start();
};
/*----------- defined in video/galastrm.c -----------*/
SCREEN_UPDATE_IND16( galastrm );
|