/************************************************************************ Module#48-51 Title: ポ−ト入出力 File : IO.C Ver.1.0 written on Jan.17,1996 by M.M. *************************************************************************/ int inportb( port ) char *port;/* Input Port Adrs. */ { return((int)*port);/* Read from I/O Port */ } unsigned char inportu(port) char *port; { return((unsigned char)*port ); } int outportb( port, data ) char *port;/* Output Port Adrs. */ int data;/* Output Byte Data */ { *port = data;/* Write to I/O Port */ return(data); } unsigned char outportu(port, data) char *port; unsigned char data; { *port = data; return(data); }