OSDN Git Service

[VM][General] Merge Upstream 2021-05-06. Some variants of PC-6001 are temporally...
[csp-qt/common_source_project-fm7.git] / source / src / vm / bx1 / floppy.h
1 /*
2         CANON BX-1 Emulator 'eBX-1'
3
4         Author : Takeda.Toshiya
5         Date   : 2021.02.14-
6
7         [ floppy ]
8 */
9
10 #ifndef _FLOPPY_H_
11 #define _FLOPPY_H_
12
13 #include "../vm.h"
14 #include "../../emu_template.h"
15 #include "../device.h"
16
17 class MC6843;
18
19 namespace BX1 {
20 class FLOPPY : public DEVICE
21 {
22 private:
23         MC6843* d_fdc;
24         
25 public:
26         FLOPPY(VM_TEMPLATE* parent_vm, EMU_TEMPLATE* parent_emu) : DEVICE(parent_vm, parent_emu)
27         {
28                 set_device_name(_T("Floppy I/F"));
29         }
30         ~FLOPPY() {}
31         
32         // common functions
33         virtual void __FASTCALL write_io8(uint32_t addr, uint32_t data);
34         virtual uint32_t __FASTCALL read_io8(uint32_t addr);
35         
36         // unique function
37         void set_context_fdc(MC6843* device)
38         {
39                 d_fdc = device;
40         }
41 };
42 }
43
44 #endif
45