Category : Files from Magazines
Archive   : APR91.ZIP
Filename : 2N04036A

 
Output of file : 2N04036A contained in archive : APR91.ZIP

int single_drive_flag; /* global flag used by SetFloppy() */

/*
* return 1 if single floppy system, else return 0
*/

int SingleDrive(void){
char FloppyPresent, FloppyNumber;
FloppyPresent = peekb(0x40,0x10) & 1;
FloppyNumber = ((peekb(0x40,0x10) & 0xC0) >> 6) + 1;
single_drive_flag = (FloppyPresent &&
(FloppyNumber == 1)) ? 1 : 0;
}

void SetFloppy(char *filename){
char disk_name;
if(single_drive_flag){
if(filename[1]==':') /* If a drive was specified, */
disk_name=toupper(filename[0]); /* get the letter. */
else /* Else get default drive */
disk_name=getdisk()+0x41; /* ...just in case. */
if(disk_name=='A') /* Adjust byte at */
pokeb(0x50,4,0); /* 0050:0004h as needed. */
else if(disk_name=='B')
pokeb(0x50,4,1);
}
}


  3 Responses to “Category : Files from Magazines
Archive   : APR91.ZIP
Filename : 2N04036A

  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/