File:
[RetroPC.NET] /
np2 /
io /
fdd320.c
Revision
1.3:
download - view:
text,
annotated -
select for diffs
Mon Dec 8 09:55:32 2003 JST (21 years, 10 months ago) by
yui
Branches:
MAIN
CVS tags:
VER_0_80,
VER_0_79,
VER_0_78,
VER_0_77,
VER_0_76,
VER_0_75,
VER_0_74,
VER_0_73,
HEAD
add IA32 etc... (T.Yui)
#include "compiler.h"
#include "pccore.h"
#include "iocore.h"
// こっちで処理するか シリンダ倍移動で誤魔化すか悩ましいところ
BYTE fdd320_stat;
static REG8 IOINPCALL fdd320_i51(UINT port) {
(void)port;
return(0x00);
}
static REG8 IOINPCALL fdd320_i55(UINT port) {
fdd320_stat ^= 0xff;
(void)port;
return(fdd320_stat);
}
// ----
static const IOINP fdd320i51[4] = {
fdd320_i51, NULL, fdd320_i55, NULL};
void fdd320_reset(void) {
fdd320_stat = 0xff;
}
void fdd320_bind(void) {
iocore_attachcmninpex(0x0051, 0x00f9, fdd320i51, 4);
}
RetroPC.NET-CVS <cvs@retropc.net>