OSDN Git Service

[GENERAL] Merge upstream 2017-03-04. Still checking FTBFSs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / gamegear / system.h
1 /*
2         SEGA GAME GEAR Emulator 'yaGAME GEAR'
3
4         Author : tanam
5         Date   : 2013.08.24-
6
7         [ system port ]
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_key;
21         bool tenkey;
22
23 public:
24         SYSTEM(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
25         ~SYSTEM() {}
26         
27         // common functions
28         uint32_t read_io8(uint32_t addr);
29         void write_io8(uint32_t addr, uint32_t data);
30         
31         // unique function
32         void set_context_key(DEVICE* device)
33         {
34                 d_key = device;
35         }
36 };
37 #endif