home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / TURBOPAS / TUR6_101.ZIP / V9.ASM < prev    next >
Encoding:
Assembly Source File  |  1986-06-07  |  1.5 KB  |  26 lines

  1. ;--------------------------------------------------------------------
  2. ; Author       : Kevin Dahl                                         :
  3. ; Last Revised : June 7, 1986                                       :
  4. ;                                                                   :
  5. ; FILENAME - V9.ENH                                                 :
  6. ;                                                                   :
  7. ; GETCURSORSIZE                                                     :
  8. ;        Get the starting and ending scan lines for the cursor      :
  9. ;                                                                   :
  10. ; EXIT                                                              :
  11. ;        AH - starting scan line                                    :
  12. ;        AL - ending scan line                                      :
  13. ;--------------------------------------------------------------------
  14. getcursorsize proc      near
  15.               push      bp                       ; save stack
  16.               mov       bp,sp
  17.               mov       ah,0fh                   ; get current video mode
  18.               int       10h                      ; use BIOS services
  19.               mov       ah,3                     ; read cursor information
  20.               int       10h                      ; use BIOS services
  21.               mov       ax,cx
  22.               mov       sp,bp                    ; restore stack
  23.               pop       bp
  24.               ret       2                        ; remove params from stack
  25. getcursorsize endp
  26.