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.cpp
1 /*
2         Systems Formulate BUBCOM80 Emulator 'eBUBCOM80'
3
4         Author : Takeda.Toshiya
5         Date   : 2018.05.09-
6
7         [ floppy ]
8 */
9
10 #include "floppy.h"
11 #include "../mb8877.h"
12
13 namespace BUBCOM80 {
14 void FLOPPY::write_io8(uint32_t addr, uint32_t data)
15 {
16         switch(addr) {
17         case 0x3fd8:
18 //              if((data & 0x0c) == 0x0c) {
19                 d_fdc->write_signal(SIG_MB8877_DRIVEREG, data, 0x03);
20                 d_fdc->write_signal(SIG_MB8877_SIDEREG,  data, 0x40);
21                 // bit7: set when track > 59
22 //              }
23                 break;
24         }
25 }
26 }