#include #include #include "mdedriverdll_9x.h" void main() { printf("This program toggles the bits for Port A and Port B."); // outp(0x303,0x80); //MAKE PA,PB of 8255 ALL OUTPUT MDEConfigPort(0x378, 0x80); do { // outp(0x300,0x55); //SEND 55H TO PORT A // outp(0x301,0x55); //SEND 55H TO PORT B MDEOutPA(0x378, 0x55); MDEOutPB(0x378, 0x55); delay(500); //DELAY of 500 msec. // outp(0x300,0xAA); //NOW SEND AAH TO PA, and PB // outp(0x301,0xAA); MDEOutPA(0x378, 0xAA); MDEOutPB(0x378, 0xAA); delay(500); } while(!kbhit()); }