/*............................... WRITPORT.C ................10-20-91.......*/ /* This program prompts the user for a hex i/o port address and a hex data */ /* byte value. Then it writes this byte to the port. */ /*..........................................................................*/ main() { unsigned paddr,pdata; LOOP: printf("Input port address (hex), data byte (hex): "); scanf("%x,%x",&paddr,&pdata); outp(paddr,pdata); goto LOOP; return 0; }