OSDN Git Service

[UI][Qt] Apply to upstream's updating definitions.Still not implement around HDDs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / bubcom80 / floppy.h
1 /*
2         Systems Formulate BUBCOM80 Emulator 'eBUBCOM80'
3
4         Author : Takeda.Toshiya
5         Date   : 2018.05.09-
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;
21         
22 public:
23         FLOPPY(VM* 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 function
30         void write_io8(uint32_t addr, uint32_t data);
31         
32         // unique function
33         void set_context_fdc(DEVICE* device)
34         {
35                 d_fdc = device;
36         }
37 };
38
39 #endif
40