Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
DispText
◄Example► ◄Back► ◄Contents► ◄Index►
──────────────────────────────────────────────────────────────────────────────
;* DispText - Macro to display text at given screen coordinates.
;*
;* Shows: Equates - @DataSize @data
;*
;* Params: row - Screen row (top line = 0)
;* col - Screen column (leftmost column = 0)
;* str - Pointer to ASCIIZ string
DispText MACRO row, col, str ;; Macro definition
IF @DataSize ;; If far pointer required,
mov ax, @data ;; pass data segment
push ax
ENDIF
mov ax, str ;; Pointer to ASCIIZ text
push ax
mov ax, col ;; Screen column
push ax
mov ax, row ;; Screen row
push ax
call StrWrite
IF @DataSize
add sp, 8 ;; Clean stack for far data
ELSE
add sp, 6 ;; Clean stack for near data
ENDIF
ENDM
-♦-