;       Static Name Aliases
;
        TITLE   getcurs
;       NAME    getcurs.C

        .287
_TEXT   SEGMENT  BYTE PUBLIC 'CODE'
_TEXT   ENDS
_DATA   SEGMENT  WORD PUBLIC 'DATA'
_DATA   ENDS
CONST   SEGMENT  WORD PUBLIC 'CONST'
CONST   ENDS
_BSS    SEGMENT  WORD PUBLIC 'BSS'
_BSS    ENDS
DGROUP  GROUP   CONST,  _BSS,   _DATA
        ASSUME  CS: _TEXT, DS: DGROUP, SS: DGROUP, ES: DGROUP
_TEXT      SEGMENT

        PUBLIC  _getcurs
_getcurs        PROC NEAR
        push    bp
        mov     bp,sp

;       row = 4
;       col = 6

        mov     ah,3
        mov     bh,0
        int     10h

        mov     al,dh
        xor     dh,dh
        xor     ah,ah
        mov     bx,[bp+4]      ;row
        mov     [bx],ax
        mov     bx,[bp+6]      ;col
        mov     [bx],dx

        mov     sp,bp
        pop     bp
        ret

_getcurs        ENDP
_TEXT   ENDS
END
