OSDN Git Service

5996ecd0491177d16983f08c0cbb5beffb085364
[csp-qt/common_source_project-fm7.git] / source / src / vm / n5200 / system.h
1 /*
2         NEC N5200 Emulator 'eN5200'
3
4         Author : Takeda.Toshiya
5         Date   : 2009.06.04-
6
7         [ system i/o ]
8 */
9
10 #ifndef _SYSTEM_H_
11 #define _SYSTEM_H_
12
13 #include "../vm.h"
14 #include "../../emu.h"
15 #include "../device.h"
16
17 class SYSTEM : public DEVICE
18 {
19 private:
20         DEVICE *d_dma;
21         
22         uint8 mode;
23         bool nmi_enb;
24         
25 public:
26         SYSTEM(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
27         ~SYSTEM() {}
28         
29         // common functions
30         void reset();
31         void write_io8(uint32 addr, uint32 data);
32         uint32 read_io8(uint32 addr);
33         
34         // unique function
35         void set_context_dma(DEVICE* device)
36         {
37                 d_dma = device;
38         }
39 };
40
41 #endif
42