blob: e0c339dd057ffc10008589b688b940dbdff58d9a (
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
|
/***************************************************************************
Sun Electronics Kangaroo hardware
driver by Ville Laitinen
***************************************************************************/
class kangaroo_state : public driver_device
{
public:
kangaroo_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_video_control(*this, "video_control"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_video_control;
/* video-related */
UINT32 *m_videoram;
/* misc */
UINT8 m_mcu_clock;
DECLARE_READ8_MEMBER(mcu_sim_r);
DECLARE_WRITE8_MEMBER(mcu_sim_w);
DECLARE_WRITE8_MEMBER(kangaroo_coin_counter_w);
DECLARE_WRITE8_MEMBER(kangaroo_videoram_w);
DECLARE_WRITE8_MEMBER(kangaroo_video_control_w);
virtual void machine_start();
virtual void machine_reset();
virtual void video_start();
DECLARE_MACHINE_START(kangaroo_mcu);
UINT32 screen_update_kangaroo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
void videoram_write( UINT16 offset, UINT8 data, UINT8 mask );
void blitter_execute( );
};
|