SetCurPos
◄Example► ◄Back► ◄Contents► ◄Index►
──────────────────────────────────────────────────────────────────────────────
;* SetCurPos - Sets cursor position.
;*
;* Shows: BIOS Interrupt - 10h, Function 2 (Set Cursor Position)
;*
;* Uses: vconfig - Video configuration structure, declared in the
;* DEMO.INC include file. The structure must first be
;* initialized by calling the GetVidConfig procedure.
;*
;* Params: row - Target row
;* col - Target column
;*
;* Return: None
SetCurPos PROC \
row:WORD, col:WORD
mov dx, col ; DL = column
mov dh, BYTE PTR row ; DH = row
mov ah, 2 ; Function 2
mov bh, vconfig.dpage ; Current page
int 10h ; Set Cursor Position
ret
SetCurPos ENDP
-♦-