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
|
/*****************************************************************************
*
* includes/sym1.h
*
* Synertek Systems Corp. SYM-1
*
* Early driver by PeT <mess@utanet.at>, May 2000
* Rewritten by Dirk Best, October 2007
*
****************************************************************************/
#ifndef SYM1_H_
#define SYM1_H_
#include "machine/6532riot.h"
#include "machine/6522via.h"
#include "machine/74145.h"
/* SYM-1 main (and only) oscillator Y1 */
#define SYM1_CLOCK XTAL_1MHz
class sym1_state : public driver_device
{
public:
sym1_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_ram_1k(*this, "ram_1k"),
m_ram_2k(*this, "ram_2k"),
m_ram_3k(*this, "ram_3k"),
m_monitor(*this, "monitor"),
m_riot_ram(*this, "riot_ram"){ }
required_shared_ptr<UINT8> m_ram_1k;
required_shared_ptr<UINT8> m_ram_2k;
required_shared_ptr<UINT8> m_ram_3k;
required_shared_ptr<UINT8> m_monitor;
required_shared_ptr<UINT8> m_riot_ram;
UINT8 m_riot_port_a;
UINT8 m_riot_port_b;
emu_timer *m_led_update;
DECLARE_DRIVER_INIT(sym1);
};
/*----------- defined in drivers/sym1.c -----------*/
/* Pointer to the monitor ROM, which includes the reset vectors for the CPU */
/*----------- defined in machine/sym1.c -----------*/
extern const riot6532_interface sym1_r6532_interface;
extern const ttl74145_interface sym1_ttl74145_intf;
extern const via6522_interface sym1_via0;
extern const via6522_interface sym1_via1;
extern const via6522_interface sym1_via2;
MACHINE_RESET( sym1 );
#endif /* SYM1_H_ */
|