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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
/*************************************************************************
deco16ic.h
Implementation of Data East tilemap ICs
Data East IC 55 / 56 / 74 / 141
**************************************************************************/
#pragma once
#ifndef __DECO16IC_H__
#define __DECO16IC_H__
#include "devcb.h"
/***************************************************************************
TYPE DEFINITIONS
***************************************************************************/
typedef int (*deco16_bank_cb)( const int bank );
typedef struct _deco16ic_interface deco16ic_interface;
struct _deco16ic_interface
{
const char *screen;
int split;
int full_width12;
int trans_mask1, trans_mask2;
int col_base1, col_base2;
int col_mask1, col_mask2;
deco16_bank_cb bank_cb0, bank_cb1;
int _8x8_gfxregion, _16x16_gfxregion;
};
DECLARE_LEGACY_DEVICE(DECO16IC, deco16ic);
/***************************************************************************
DEVICE CONFIGURATION MACROS
***************************************************************************/
#define MCFG_DECO16IC_ADD(_tag, _interface) \
MCFG_DEVICE_ADD(_tag, DECO16IC, 0) \
MCFG_DEVICE_CONFIG(_interface)
/***************************************************************************
DEVICE I/O FUNCTIONS
***************************************************************************/
WRITE16_DEVICE_HANDLER( deco16ic_pf1_data_w );
WRITE16_DEVICE_HANDLER( deco16ic_pf2_data_w );
READ16_DEVICE_HANDLER( deco16ic_pf1_data_r );
READ16_DEVICE_HANDLER( deco16ic_pf2_data_r );
WRITE16_DEVICE_HANDLER( deco16ic_pf_control_w );
READ16_DEVICE_HANDLER( deco16ic_pf_control_r );
WRITE32_DEVICE_HANDLER( deco16ic_pf1_data_dword_w );
WRITE32_DEVICE_HANDLER( deco16ic_pf2_data_dword_w );
READ32_DEVICE_HANDLER( deco16ic_pf1_data_dword_r );
READ32_DEVICE_HANDLER( deco16ic_pf2_data_dword_r );
WRITE32_DEVICE_HANDLER( deco16ic_pf_control_dword_w );
READ32_DEVICE_HANDLER( deco16ic_pf_control_dword_r );
void deco16ic_print_debug_info(device_t *device, bitmap_t *bitmap);
void deco16ic_pf_update(device_t *device, const UINT16 *rowscroll_1_ptr, const UINT16 *rowscroll_2_ptr);
void deco16ic_tilemap_1_draw(device_t *device, bitmap_t *bitmap, const rectangle *cliprect, int flags, UINT32 priority);
void deco16ic_tilemap_2_draw(device_t *device, bitmap_t *bitmap, const rectangle *cliprect, int flags, UINT32 priority);
/* used by boogwing, nitrobal */
void deco16ic_tilemap_12_combine_draw(device_t *device, bitmap_t *bitmap, const rectangle *cliprect, int flags, UINT32 priority, int is_tattoo = false);
/* used by robocop2 */
void deco16ic_set_tilemap_colour_mask(device_t *device, int tmap, int mask);
void deco16ic_pf12_set_gfxbank(device_t *device, int small, int big);
/* used by captaven */
void deco16ic_set_pf1_8bpp_mode(device_t *device, int mode);
/* used by stoneage */
void deco16ic_set_scrolldx(device_t *device, int tmap, int size, int dx, int dx_if_flipped);
#endif
|