DRAW_FINISH         PROC
; draws the title screen.

        PUSH    DX
        PUSH    CX      ; save counter register
        PUSH    BX      ; save BX
        PUSH    AX
        
        XOR     BX, BX
        XOR     CX, CX
        XOR     DX, DX

        MOV     AH,0Ch  ; set function to draw pixel
        MOV     AL,STRCOLOR        ; set pixel color to color of strip
        
        MOV     BH,0    ; set initial value to 0 (page)
        MOV     CX,0    ; set col to 0
        MOV     DX,190  ; set row to 190



; now we display the word "VGA Fencing"
; make a procedure to clear the screen
        ;MOV     CX, 0
        ;MOV     DX, 0
; 80 X 29
;CLEARLOOP:
;        CMP     DX, 80          ; at end of col?
        CALL    SET_GRAPHICS

       

        DRAWCH 11,26,WCLR,'T'
        DRAWCH 11,27,WCLR,'H'
        DRAWCH 11,28,WCLR,'A'
        DRAWCH 11,29,WCLR,'N'
        DRAWCH 11,30,WCLR,'K'
        DRAWCH 11,31,WCLR,' '
        DRAWCH 11,32,WCLR,'Y'
        DRAWCH 11,33,WCLR,'O'
        DRAWCH 11,34,WCLR,'U'
        DRAWCH 11,35,WCLR,' '
        DRAWCH 11,36,WCLR,'F'
        DRAWCH 11,37,WCLR,'O'
        DRAWCH 11,38,WCLR,'R'
        DRAWCH 11,39,WCLR,' '
        DRAWCH 11,40,WCLR,'P'
        DRAWCH 11,41,WCLR,'L'
        DRAWCH 11,42,WCLR,'A'
        DRAWCH 11,43,WCLR,'Y'
        DRAWCH 11,44,WCLR,'I'
        DRAWCH 11,45,WCLR,'N'
        DRAWCH 11,46,WCLR,'G'
                                   

        
; read key
        MOV     AH, 0
        INT     16H
;        

        POP     DX      ; restore registers
        POP     CX
        POP     BX
        POP     AX

        RET

DRAW_FINISH         ENDP
