OSDN Git Service

d300ea2a12edaf83f50c6f3bbbabfd296d5c586e
[csp-qt/common_source_project-fm7.git] / source / src / vm / pasopia7 / pac2.h
1 /*
2         TOSHIBA PASOPIA 7 Emulator 'EmuPIA7'
3
4         Author : Takeda.Toshiya
5         Date   : 2006.09.20 -
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         PAC2DEV* dev[8];
26         int sel;
27         
28         RAMPAC2* rampac2[2];
29         KANJIPAC2* kanji;
30         JOYPAC2* joy;
31         PAC2DEV* dummy;
32         
33 public:
34         PAC2(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
35         {
36                 set_device_name(_T("PAC2 Slot"));
37         }
38         ~PAC2() {}
39         
40         // common functions
41         void initialize();
42         void release();
43         void reset();
44         void write_io8(uint32_t addr, uint32_t data);
45         uint32_t read_io8(uint32_t addr);
46         bool process_state(FILEIO* state_fio, bool loading);
47         
48         // unique function
49         void open_rampac2(int drv, const _TCHAR* file_path);
50 };
51
52 #endif
53