File:  [RetroPC.NET] / np2 / io / fdd320.c
Revision 1.5: download - view: text, annotated - select for diffs
Sat Nov 3 09:00:20 2007 JST (17 years, 11 months ago) by yui
Branches: MAIN
CVS tags: HEAD
fix io reset args

#include	"compiler.h"
#include	"pccore.h"
#include	"iocore.h"


// こっちで処理するか シリンダ倍移動で誤魔化すか悩ましいところ

	UINT8	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(const NP2CFG *pConfig) {

	fdd320_stat = 0xff;
}

void fdd320_bind(void) {

	iocore_attachcmninpex(0x0051, 0x00f9, fdd320i51, 4);
}


RetroPC.NET-CVS <cvs@retropc.net>