home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / assemutl.zip / SPEDUPDK.ASM < prev    next >
Assembly Source File  |  1985-05-11  |  1KB  |  46 lines

  1.  
  2.      TITLE     'SPEED - Adjust Diskette Parameters'
  3.  
  4. ; Adapted from SPEED411 and from "Inside the IBM PC",
  5. ; by Peter Norton, pages 138-139.
  6. ;
  7. ; At location x'78' is a pointer to the diskette
  8. ; parameter table. This program changes the first
  9. ; value, the Step Rate Time, which results in a
  10. ; quieter and somewhat faster running drive.
  11. ;
  12. ; The third byte of the table specifies the motor
  13. ; turn off delay time. It is changed from 37 msec
  14. ; to 200 msec, which results in fewer start-up
  15. ; operations.
  16. ;
  17. ; To install:
  18. ;     MASM SPEED;
  19. ;     LINK SPEED;
  20. ;     EXE2BIN SPEED.EXE SPEED.COM
  21. ;     DEL SPEED.EXE
  22. ;     SPEED
  23. ; The program can be run again without harm.
  24. ;
  25. CSEG     SEGMENT PARA PUBLIC 'CODE'
  26.      ASSUME  CS:CSEG,DS:CSEG,ES:CSEG
  27.      ORG     100H
  28. SPEED     PROC     FAR
  29.      PUSH     DS             ;save for linkage
  30.      XOR     AX,AX             ;clear for return
  31.      PUSH     AX             ;put in stack
  32. ;
  33.      PUSH     DS             ;Modify diskette parameters
  34.      MOV     DS,AX             ;Offset into disk table
  35.      LDS     DI,DWORD PTR DS:78H     ;Addr of disk table
  36.      MOV     BYTE PTR [DI],239     ;Modify step rate
  37.      MOV     BYTE PTR [DI+2],200     ;And motor stop delay
  38.      INT     13H             ;Reset diskette system
  39.      POP     DS
  40. ;
  41.      INT     20H
  42. ;
  43. SPEED     ENDP
  44. CSEG     ENDS
  45.      END     SPEED
  46.