OSDN Git Service

9944177010a2db1d77d955ad240e7524f2c845d9
[csp-qt/common_source_project-fm7.git] / source / src / vm / qc10 / floppy.h
1 /*
2         EPSON QC-10 Emulator 'eQC-10'
3
4         Author : Takeda.Toshiya
5         Date   : 2008.02.18 -
6
7         [ floppy ]
8 */
9
10 #ifndef _FLOPPY_H_
11 #define _FLOPPY_H_
12
13 #include "../vm.h"
14 #include "../../emu.h"
15 #include "../device.h"
16
17 class FLOPPY : public DEVICE
18 {
19 private:
20         DEVICE *d_fdc, *d_mem;
21         
22 public:
23         FLOPPY(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
24         {
25                 set_device_name(_T("Floppy I/F"));
26         }
27         ~FLOPPY() {}
28         
29         // common functions
30         void write_io8(uint32_t addr, uint32_t data);
31         
32         // unique functions
33         void set_context_fdc(DEVICE* device)
34         {
35                 d_fdc = device;
36         }
37         void set_context_mem(DEVICE* device)
38         {
39                 d_mem = device;
40         }
41 };
42
43 #endif
44