#include #include #include "mdedriverdll_9x.h" void main() { unsigned char mybyte; cls(); printf("This program gets a byte from PA and sends it to PB,PC and screen\n."); // outp(0x303,0x90); //PA=in, PB=out, PC=out MDEConfigPort(0x378, 0x90); delay(5); //wait 5 milliseconds // mybyte=inp(0x300); //get byte from PA mybyte=MDEInPA(0x378); // outp(0x301,mybyte); //send to PB MDEOutPB(0x378, mbyte); delay(5); // outp(0x302,mybyte); //send to Port C MDEOutPC(0x378, mbyte); sleep(5); printf("The input from PA is equal to %X in hex \n",mybyte); }