home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / HARDDISK / PARKIT.ZIP / PARK.ASM next >
Encoding:
Assembly Source File  |  1990-01-07  |  472 b   |  38 lines

  1.     TITLE    PARK - moves heads to landing zone
  2. CODE    SEGMENT BYTE PUBLIC 'CODE'
  3.     ASSUME    CS:CODE
  4.  
  5. parks:    sti
  6.     mov    ax,cs
  7.     mov    ds,ax
  8. ;
  9. ;    Do the BIOS's dirty work so this code will work!
  10. ;
  11.     mov    al,020h
  12.     out    020h,al
  13. ;
  14.     mov    ah,08
  15.     mov    dx,80h
  16.     int    13h
  17.     mov    dx,80h
  18.      inc    ch
  19.     jnc    p1
  20.     add    cl,40h
  21. p1:    mov    ax,0c01h
  22.     int    13h
  23. ;
  24.     mov    ah,08
  25.     mov    dx,81h
  26.     int    13h
  27.     mov    dx,81h
  28.       inc    ch
  29.     jnc    p2
  30.     add    cl,40h
  31. p2:    mov    ax,0c01h
  32.     int    13h
  33. ;
  34.     int    20h
  35.  
  36. CODE    ENDS
  37.     END
  38.