~ubuntu-branches/ubuntu/precise/mame/precise-proposed

« back to all changes in this revision

Viewing changes to src/emu/machine/am8530h.h

  • Committer: Package Import Robot
  • Author(s): Cesare Falco
  • Date: 2011-11-30 18:50:10 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111130185010-02hcxybht1mn082w
Tags: 0.144-0ubuntu1
* New upstream release (LP: #913550)
* mame.install:
  - Added artwork/ images to be used with -effect switch
  - Be more selective with hash/ contents
* contrib/mame.ini: added /usr/share/games/mame/artwork/ to artpath

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __AM8530H_H__
 
2
#define __AM8530H_H__
 
3
 
 
4
#include "emu.h"
 
5
 
 
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);
 
9
 
 
10
class am8530h_device : public device_t {
 
11
public:
 
12
        typedef delegate<void ()> int_cb_t;
 
13
 
 
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);
 
16
 
 
17
        DECLARE_READ8_MEMBER(ca_r);
 
18
        DECLARE_READ8_MEMBER(cb_r);
 
19
        DECLARE_READ8_MEMBER(da_r);
 
20
        DECLARE_READ8_MEMBER(db_r);
 
21
 
 
22
        DECLARE_WRITE8_MEMBER(ca_w);
 
23
        DECLARE_WRITE8_MEMBER(cb_w);
 
24
        DECLARE_WRITE8_MEMBER(da_w);
 
25
        DECLARE_WRITE8_MEMBER(db_w);
 
26
 
 
27
        void data_a_w(UINT8 val);
 
28
        void data_b_w(UINT8 val);
 
29
 
 
30
        void int_ack();
 
31
        bool int_level_get();
 
32
 
 
33
protected:
 
34
        virtual void device_start();
 
35
 
 
36
private:
 
37
        int_cb_t int_change_cb;
 
38
};
 
39
 
 
40
extern const device_type AM8530H;
 
41
 
 
42
#endif