home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / C-ASM_VI.ARJ / PROGASM.ZIP / PROG042.ASM < prev    next >
Assembly Source File  |  1988-04-10  |  875b  |  19 lines

  1.  
  2. ;************************************************************************
  3. ; Get current cursor position using BIOS call                           *
  4. ; and returnt the values                                                *
  5. ; Exit: AL - Column                                                     *
  6. ;       AH - Row                                                        *
  7. ;************************************************************************
  8.  
  9.         PUBLIC _BIOS_Get_Cursor_Pos
  10.  
  11. _BIOS_Get_Cursor_Pos   PROC NEAR
  12.         MOV     AH,03H                  ;Load BIOS function
  13.         MOV     BH,0                    ;Specify current page to be 0
  14.         INT     10H                     ;Call BIOS so get position
  15.         MOV     AH,DH                   ;Save row
  16.         MOV     AL,DL                   ;Save column
  17.         RET
  18. _BIOS_Get_Cursor_Pos   ENDP
  19.