10
10
***************************************************************************/
12
12
#include "driver.h"
14
#include "vidhrdw/generic.h"
16
data16_t *thoop2_vregs;
17
data16_t *thoop2_videoram;
18
data16_t *thoop2_spriteram;
15
UINT16 *thoop2_videoram;
16
UINT16 *thoop2_spriteram;
20
18
static int sprite_count[5];
21
19
static int *sprite_table[5];
22
static struct tilemap *pant[2];
20
static tilemap *pant[2];
25
23
/***************************************************************************
27
Callbacks for the TileMap code
25
Callbacks for the TileMap code
29
27
***************************************************************************/
35
Screen 0 & 1: (32*32, 16x16 tiles)
37
Word | Bit(s) | Description
38
-----+-FEDCBA98-76543210-+--------------------------
39
0 | -------- ------xx | code (high bits)
40
0 | xxxxxxxx xxxxxx-- | code (low bits)
41
1 | -------- --xxxxxx | color
42
1 | -------- xx------ | priority
43
1 | --xxxxxx -------- | not used
44
1 | -x------ -------- | flip x
45
1 | x------- -------- | flip y
33
Screen 0 & 1: (32*32, 16x16 tiles)
35
Word | Bit(s) | Description
36
-----+-FEDCBA98-76543210-+--------------------------
37
0 | -------- ------xx | code (high bits)
38
0 | xxxxxxxx xxxxxx-- | code (low bits)
39
1 | -------- --xxxxxx | color
40
1 | -------- xx------ | priority
41
1 | --xxxxxx -------- | not used
42
1 | -x------ -------- | flip x
43
1 | x------- -------- | flip y
48
46
static void get_tile_info_thoop2_screen0(int tile_index)
86
84
/***************************************************************************
88
Start/Stop the video hardware emulation.
86
Start/Stop the video hardware emulation.
90
88
***************************************************************************/
151
Word | Bit(s) | Description
152
-----+-FEDCBA98-76543210-+--------------------------
153
0 | -------- xxxxxxxx | y position
154
0 | -----xxx -------- | not used
155
0 | ----x--- -------- | sprite size
156
0 | --xx---- -------- | sprite priority
157
0 | -x------ -------- | flipx
158
0 | x------- -------- | flipy
159
1 | xxxxxxxx xxxxxxxx | not used
160
2 | -------x xxxxxxxx | x position
161
2 | -xxxxxx- -------- | sprite color
162
3 | -------- ------xx | sprite code (high bits)
163
3 | xxxxxxxx xxxxxx-- | sprite code (low bits)
146
Word | Bit(s) | Description
147
-----+-FEDCBA98-76543210-+--------------------------
148
0 | -------- xxxxxxxx | y position
149
0 | -----xxx -------- | not used
150
0 | ----x--- -------- | sprite size
151
0 | --xx---- -------- | sprite priority
152
0 | -x------ -------- | flipx
153
0 | x------- -------- | flipy
154
1 | xxxxxxxx xxxxxxxx | not used
155
2 | -------x xxxxxxxx | x position
156
2 | -xxxxxx- -------- | sprite color
157
3 | -------- ------xx | sprite code (high bits)
158
3 | xxxxxxxx xxxxxx-- | sprite code (low bits)
166
static void gaelco_draw_sprites(struct mame_bitmap *bitmap, const struct rectangle *cliprect, int pri)
161
static void gaelco_draw_sprites(mame_bitmap *bitmap, const rectangle *cliprect, int pri)
168
163
int j, x, y, ex, ey;
169
const struct GfxElement *gfx = Machine->gfx[0];
164
const gfx_element *gfx = Machine->gfx[0];
171
166
static int x_offset[2] = {0x0,0x2};
172
167
static int y_offset[2] = {0x0,0x1};