blob: ffe1de3bff643eba8081579d9abaeca56154120b (
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
|
/*************************************************************************
Mr. Flea
*************************************************************************/
class mrflea_state : public driver_device
{
public:
mrflea_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_spriteram;
// UINT8 * paletteram; // currently this uses generic palette handling
/* video-related */
int m_gfx_bank;
/* misc */
int m_io;
int m_main;
int m_status;
int m_select1;
/* devices */
cpu_device *m_maincpu;
cpu_device *m_subcpu;
DECLARE_WRITE8_MEMBER(mrflea_main_w);
DECLARE_WRITE8_MEMBER(mrflea_io_w);
DECLARE_READ8_MEMBER(mrflea_main_r);
DECLARE_READ8_MEMBER(mrflea_io_r);
DECLARE_READ8_MEMBER(mrflea_main_status_r);
DECLARE_READ8_MEMBER(mrflea_io_status_r);
DECLARE_READ8_MEMBER(mrflea_interrupt_type_r);
DECLARE_WRITE8_MEMBER(mrflea_select1_w);
DECLARE_READ8_MEMBER(mrflea_input1_r);
DECLARE_WRITE8_MEMBER(mrflea_data1_w);
DECLARE_WRITE8_MEMBER(mrflea_gfx_bank_w);
DECLARE_WRITE8_MEMBER(mrflea_videoram_w);
DECLARE_WRITE8_MEMBER(mrflea_spriteram_w);
virtual void machine_start();
virtual void machine_reset();
UINT32 screen_update_mrflea(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
|