home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programming
/
powerprogramming1994.iso
/
progtool
/
microcrn
/
issue_45.arc
/
TECHTP45.ARC
/
TECHTIPS.4
< prev
Wrap
Text File
|
1988-03-23
|
771b
|
21 lines
/* Micro Cornucopia Magazine Issue #45 TECHTIPS Figure 4
Turbo C step rate code */
/* step.c - alters disk parameter table to vary floppy step rate */
#include <stdio.h>
#include <dos.h>
const int step_rate = 0xef; /* 0xcf = 8 msec */
/* 0xdf = 6 msec */
/* 0xef = 4 msec */
/* 0xff = 2 msec */
/* 0xgf = 0 msec */
main ()
{
pokeb (0x00, 0x522, step_rate); /* set new step rate in DPB */
_AH = 0x00; /* set up for reset */
geninterrupt (0x13); /* reset floppy controller */
}