OSDN Git Service

[VM][MZ5500][WIP] Applying new state framework.WIP.
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz80k / mz80aif.cpp
1 /*
2         SHARP MZ-80A Emulator 'EmuZ-80A'
3
4         Author : Takeda.Toshiya
5         Date   : 2006.12.04 -
6
7         Modify : Hideki Suga
8         Date   : 2014.12.30 -
9
10         [ MZ-80AIF ]
11 */
12
13 #include "mz80aif.h"
14 #include "../mb8877.h"
15
16 void MZ80AIF::write_io8(uint32_t addr, uint32_t data)
17 {
18         switch(addr & 0xff) {
19         case 0xdc:
20                 // drive reg
21                 d_fdc->write_signal(SIG_MB8877_DRIVEREG, data, 3);
22                 d_fdc->write_signal(SIG_MB8877_MOTOR, data, 0x80);
23                 break;
24         case 0xdd:
25                 // side reg
26                 d_fdc->write_signal(SIG_MB8877_SIDEREG, data, 1);
27                 break;
28         }
29 }
30