home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol6n05.zip / THREECOM.ZIP / FASTOFF.ASM next >
Assembly Source File  |  1987-02-22  |  768b  |  44 lines

  1. ; FASTOFF.ASM - Turns off diskette drive motors much quicker
  2. ; PC Magazine Vol 6 No 5 March 10, 1987 User-to-User
  3.  
  4. bios_seg    segment at 40h
  5.     assume    cs:bios_seg
  6.     org    0040h
  7. motor_count:    db    ?
  8. bios_seg    ends
  9.  
  10. cseg    segment
  11.     assume    cs:cseg
  12.     org    100h
  13. start:        jmp short initialize
  14. rom_int8    dd    ?
  15. int8    proc    far
  16.     assume    cs:cseg,ds:bios_seg
  17.     push    ds
  18.     push    ax
  19.     mov    ax,bios_seg
  20.     mov    ds,ax
  21.     cmp byte ptr motor_count,2
  22.     jb    return
  23.     dec byte ptr motor_count
  24. return:
  25.     pop    ax
  26.     pop    ds
  27.     jmp    rom_int8
  28. int8    endp
  29.  
  30. initialize:
  31.     assume    cs:cseg,ds:cseg
  32.     mov    ax,3508h
  33.     int    21h
  34.     mov word ptr [rom_int8],bx
  35.     mov word ptr [rom_int8+2],es
  36.     mov    dx,offset int8
  37.     mov    ax,2508h
  38.     int    21h
  39.     mov    dx,offset initialize
  40.     int    27h
  41. cseg    ends
  42.     end    start
  43.  
  44.