OSDN Git Service

[VM][STATE] Apply new framework to some VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pasopia / pac2.h
1 /*
2         TOSHIBA PASOPIA Emulator 'EmuPIA'
3
4         Author : Takeda.Toshiya
5         Date   : 2006.12.28 -
6
7         [ pac slot 2 ]
8 */
9
10 #ifndef _PAC2_H_
11 #define _PAC2_H_
12
13 #include "../vm.h"
14 #include "../../emu.h"
15 #include "../device.h"
16
17 class PAC2DEV;
18 class RAMPAC2;
19 class KANJIPAC2;
20 class JOYPAC2;
21
22 class PAC2 : public DEVICE
23 {
24 private:
25         int device_type;
26         
27         RAMPAC2* rampac2;
28         KANJIPAC2* kanji;
29         JOYPAC2* joy;
30         PAC2DEV* dummy;
31         
32         PAC2DEV* get_device();
33         
34 public:
35         PAC2(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
36         {
37                 set_device_name(_T("PAC2 Slot"));
38         }
39         ~PAC2() {}
40         
41         // common functions
42         void initialize();
43         void release();
44         void reset();
45         void write_io8(uint32_t addr, uint32_t data);
46         uint32_t read_io8(uint32_t addr);
47         bool process_state(FILEIO* state_fio, bool loading);
48         
49         // unique function
50         void open_rampac2(const _TCHAR* file_path);
51 };
52
53 #endif
54