File:  [RetroPC.NET] / np2 / io / Attic / itf.c
Revision 1.2: download - view: text, annotated - select for diffs
Tue Oct 21 20:22:05 2003 JST (22 years ago) by yui
Branches: MAIN
CVS tags: VER_0_71, VER_0_70, HEAD
add cygwin make (T.Yui)

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


// ---- I/O

static void IOOUTCALL itf_o043d(UINT port, BYTE dat) {

	switch(dat) {
		case 0x10:
			itf.bank = 1;
			break;

		case 0x12:
			itf.bank = 0;
			break;
	}
	(void)port;
}


// ---- I/F

void itf_reset(void) {

	itf.bank = 1;
}

void itf_bind(void) {

	iocore_attachout(0x043d, itf_o043d);
}


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