;       Static Name Aliases
;
        TITLE   clrwin
;       NAME    clrwin.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  _clrwin
_clrwin PROC NEAR
        push    bp
        mov     bp,sp

;       row1 = 4
;       col1 = 6
;       row2 = 8
;       col2 = 10
;       attr = 12

        push    bp

        mov     bh,byte ptr [bp+12]      ;attr
        mov     ch,byte ptr [bp+4]       ;row1
        mov     cl,byte ptr [bp+6]       ;col1

        mov     dh,byte ptr [bp+8]       ;row2
        mov     dl,byte ptr [bp+10]      ;col2

        mov     ax,600h
        int     10h

        pop     bp
        mov     sp,bp
        pop     bp
        ret

_clrwin ENDP
_TEXT   ENDS
END
