File:
[RetroPC.NET] /
np2 /
io /
necio.c
Revision
1.4:
download - view:
text,
annotated -
select for diffs
Sat Mar 13 03:19:57 2004 JST (21 years, 7 months ago) by
yui
Branches:
MAIN
CVS tags:
VER_0_82_x64,
VER_0_82,
VER_0_81A,
VER_0_81,
VER_0_80,
VER_0_79,
VER_0_78,
VER_0_77,
VER_0_76,
VER_0_75,
HEAD
fix MacOS9 resource (T.Yui)
#include "compiler.h"
#include "cpucore.h"
#include "pccore.h"
#include "iocore.h"
// ---- I/O
static void IOOUTCALL necio_o0439(UINT port, REG8 dat) {
necio.port0439 = dat;
(void)port;
}
static void IOOUTCALL necio_o043d(UINT port, REG8 dat) {
switch(dat) {
case 0x10:
CPU_ITFBANK = 1;
break;
case 0x12:
CPU_ITFBANK = 0;
break;
}
(void)port;
}
// ---- I/F
void necio_reset(void) {
necio.port0439 = 0xff;
}
void necio_bind(void) {
iocore_attachout(0x0439, necio_o0439);
if (!(pccore.model & PCMODEL_EPSON)) {
iocore_attachout(0x043d, necio_o043d);
}
}
RetroPC.NET-CVS <cvs@retropc.net>