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

 
Output of file : 2N04034A contained in archive : APR91.ZIP
/*
** Test code for the FDC routine in floppy.c.
*/
#include
#include "floppy.h"
#include "delay.h"

static char buffer[512];

int
main(void)
{
unsigned rc;

/* Setup FDC */
calibrateDelay();
fdcSetDriveParms(0x0c, 0x0f, 0x02);
fdcReset();

/* Select drive 0, and recalibrate it */
fdcSelectDrive(0);
rc = fdcRecalibrate();
printf("fdcRecalibrate() == %u\n", rc);

/* Read in sector 1 from head 0 */
rc = fdcSeek(0, 0);
printf("fdcSeek(0, 0) == %u\n", rc);
rc = fdcReadSectors(1, 1, buffer);
printf("fdcReadSectors(1, 1, buffer) == %u\n", rc);

fdcResetParms();

{
FILE *fd;

fd = fopen("tmp.dat", "wb");
fwrite(buffer, 1, sizeof(buffer), fd);
fclose(fd);
}

return 0;
}


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

  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/