blob: 63b10313fec8998a1d4b1a870476e29bad7b1785 (
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
64
65
66
67
68
69
70
71
72
73
74
75
|
/***************************************************************************
Atari Star Wars hardware
***************************************************************************/
#include "machine/6532riot.h"
class starwars_state : public driver_device
{
public:
starwars_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_mathram(*this, "mathram"){ }
UINT8 m_sound_data;
UINT8 m_main_data;
device_t *m_riot;
UINT8 *m_slapstic_source;
UINT8 *m_slapstic_base;
UINT8 m_slapstic_current_bank;
offs_t m_slapstic_last_pc;
offs_t m_slapstic_last_address;
UINT8 m_is_esb;
required_shared_ptr<UINT8> m_mathram;
UINT8 m_control_num;
int m_MPA;
int m_BIC;
UINT16 m_dvd_shift;
UINT16 m_quotient_shift;
UINT16 m_divisor;
UINT16 m_dividend;
UINT8 *m_PROM_STR;
UINT8 *m_PROM_MAS;
UINT8 *m_PROM_AM;
int m_math_run;
emu_timer *m_math_timer;
INT16 m_A;
INT16 m_B;
INT16 m_C;
INT32 m_ACC;
DECLARE_WRITE8_MEMBER(irq_ack_w);
DECLARE_READ8_MEMBER(esb_slapstic_r);
DECLARE_WRITE8_MEMBER(esb_slapstic_w);
DECLARE_WRITE8_MEMBER(starwars_nstore_w);
DECLARE_WRITE8_MEMBER(starwars_out_w);
DECLARE_READ8_MEMBER(starwars_adc_r);
DECLARE_WRITE8_MEMBER(starwars_adc_select_w);
DECLARE_READ8_MEMBER(starwars_prng_r);
DECLARE_READ8_MEMBER(starwars_div_reh_r);
DECLARE_READ8_MEMBER(starwars_div_rel_r);
DECLARE_WRITE8_MEMBER(starwars_math_w);
DECLARE_CUSTOM_INPUT_MEMBER(matrix_flag_r);
DECLARE_READ8_MEMBER(starwars_sin_r);
DECLARE_WRITE8_MEMBER(starwars_sout_w);
DECLARE_READ8_MEMBER(starwars_main_read_r);
DECLARE_READ8_MEMBER(starwars_main_ready_flag_r);
DECLARE_WRITE8_MEMBER(starwars_main_wr_w);
DECLARE_WRITE8_MEMBER(starwars_soundrst_w);
DECLARE_DIRECT_UPDATE_MEMBER(esb_setdirect);
DECLARE_DRIVER_INIT(esb);
DECLARE_DRIVER_INIT(starwars);
virtual void machine_reset();
};
/*----------- defined in machine/starwars.c -----------*/
void starwars_mproc_init(running_machine &machine);
void starwars_mproc_reset(running_machine &machine);
/*----------- defined in audio/starwars.c -----------*/
extern const riot6532_interface starwars_riot6532_intf;
SOUND_START( starwars );
|