Category : C Source Code
Archive   : SETCOMM_.ZIP
Filename : SET_COMM.C

 
Output of file : SET_COMM.C contained in archive : SETCOMM_.ZIP
/******************************/
/* setcomm.c */
/* assigns the base address */
/* of a comm port to the BIOS */
/* NO messages are displayed */
/******************************/
/* Raymond F. Genovese 12/88 */
/******************************/

#include
#include
#include

main(argc,argv)
int argc;
char *argv[];

{
char port,x,*endp;
unsigned address;

port=atoi(argv[1]);
if((strncmp("x",argv[2]+1,1)==0)||(strncmp("X",argv[2]+1,1)==0)){
endp=argv[2]+strlen(argv[2]);
address=strtoul(argv[2],&endp,16);
}
else
address=atoi(argv[2]);
if(argc!=3)
exit(1);
poke(0x40,(port-1)*2,address);
}

  3 Responses to “Category : C Source Code
Archive   : SETCOMM_.ZIP
Filename : SET_COMM.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/