6
#define MCFG_AM8530H_ADD(_tag, _int_change_cb) \
7
MCFG_DEVICE_ADD(_tag, AM8530H, 0) \
8
downcast<am8530h_device *>(device)->set_int_change_cb(_int_change_cb);
10
class am8530h_device : public device_t {
12
typedef delegate<void ()> int_cb_t;
14
am8530h_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
15
void set_int_change_cb(int_cb_t int_change_cb);
17
DECLARE_READ8_MEMBER(ca_r);
18
DECLARE_READ8_MEMBER(cb_r);
19
DECLARE_READ8_MEMBER(da_r);
20
DECLARE_READ8_MEMBER(db_r);
22
DECLARE_WRITE8_MEMBER(ca_w);
23
DECLARE_WRITE8_MEMBER(cb_w);
24
DECLARE_WRITE8_MEMBER(da_w);
25
DECLARE_WRITE8_MEMBER(db_w);
27
void data_a_w(UINT8 val);
28
void data_b_w(UINT8 val);
34
virtual void device_start();
37
int_cb_t int_change_cb;
40
extern const device_type AM8530H;