blob: 5fc00935ab9ee611e7bed50ded568e5907ae49f4 (
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
57
58
59
60
61
62
63
|
/*************************************************************************
Atari Orbit hardware
*************************************************************************/
#include "sound/discrete.h"
/* Discrete Sound Input Nodes */
#define ORBIT_NOTE_FREQ NODE_01
#define ORBIT_ANOTE1_AMP NODE_02
#define ORBIT_ANOTE2_AMP NODE_03
#define ORBIT_NOISE1_AMP NODE_04
#define ORBIT_NOISE2_AMP NODE_05
#define ORBIT_WARNING_EN NODE_06
#define ORBIT_NOISE_EN NODE_07
class orbit_state : public driver_device
{
public:
orbit_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_playfield_ram(*this, "playfield_ram"),
m_sprite_ram(*this, "sprite_ram"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_playfield_ram;
required_shared_ptr<UINT8> m_sprite_ram;
/* video-related */
tilemap_t *m_bg_tilemap;
int m_flip_screen;
/* misc */
UINT8 m_misc_flags;
/* devices */
cpu_device *m_maincpu;
device_t *m_discrete;
DECLARE_WRITE8_MEMBER(orbit_misc_w);
DECLARE_WRITE8_MEMBER(orbit_playfield_w);
TILE_GET_INFO_MEMBER(get_tile_info);
virtual void machine_start();
virtual void machine_reset();
virtual void video_start();
UINT32 screen_update_orbit(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
/*----------- defined in audio/orbit.c -----------*/
DECLARE_WRITE8_DEVICE_HANDLER( orbit_note_w );
DECLARE_WRITE8_DEVICE_HANDLER( orbit_note_amp_w );
DECLARE_WRITE8_DEVICE_HANDLER( orbit_noise_amp_w );
DECLARE_WRITE8_DEVICE_HANDLER( orbit_noise_rst_w );
DISCRETE_SOUND_EXTERN( orbit );
/*----------- defined in video/orbit.c -----------*/
|