OSDN Git Service

[VM] TRY:Use namespace {VMNAME} to separate around VMs. This feature still apply...
[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 namespace BUBCOM80 {
18 class FLOPPY : public DEVICE
19 {
20 private:
21         DEVICE* d_fdc;
22         
23 public:
24         FLOPPY(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
25         {
26                 set_device_name(_T("Floppy I/F"));
27         }
28         ~FLOPPY() {}
29         
30         // common function
31         void write_io8(uint32_t addr, uint32_t data);
32         
33         // unique function
34         void set_context_fdc(DEVICE* device)
35         {
36                 d_fdc = device;
37         }
38 };
39 }
40 #endif
41