home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / C-ASM_VI.ARJ / PROGASM.ZIP / PROG040.ASM < prev    next >
Assembly Source File  |  1988-05-15  |  933b  |  24 lines

  1.  
  2. ;************************************************************************
  3. ; Set current cursor position using BIOS call                           *
  4. ; Entry:        Row     - Row for the cursor                            *
  5. ;               Column  - Column for the cursor                         *
  6. ;************************************************************************
  7.  
  8. Row     EQU     [BP+4]
  9. Column  EQU     [BP+6]
  10.  
  11.         PUBLIC  _BIOS_Set_Curs_Pos
  12.  
  13. _BIOS_Set_Curs_Pos   PROC NEAR
  14.         PUSH    BP
  15.         MOV     BP,SP
  16.         MOV     AH,02H                  ;Load BIOS function
  17.         MOV     BH,0                    ;Specify current page to be 0
  18.         MOV     DH,Row                  ;Load desired row
  19.         MOV     DL,Column               ;Load desired column position
  20.         INT     10H                     ;Call BIOS so set position
  21.         POP     BP
  22.         RET
  23. _BIOS_Set_Curs_Pos   ENDP
  24.