OSDN Git Service

[VM][MZ2800] Fix crash at building VM. Thanks to http://hanabi.2ch.net/test/read...
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2800 / floppy.h
1 /*
2         SHARP MZ-2800 Emulator 'EmuZ-2800'
3
4         Author : Takeda.Toshiya
5         Date   : 2007.08.13 -
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         ~FLOPPY() {}
25         
26         // common function
27         void write_io8(uint32_t addr, uint32_t data);
28         
29         // unique function
30         void set_context_fdc(DEVICE* device)
31         {
32                 d_fdc = device;
33         }
34 };
35
36 #endif
37