Category : Assembly Language Source Code
Archive   : ASM-SUBR.ZIP
Filename : CLSOFF

 
Output of file : CLSOFF contained in archive : ASM-SUBR.ZIP
;-------------------------routine begins--------------------------+
; ROUTINE FOR CLEAR GRAPHICS SCREEN
;
; FUNCTION: This routine clears the color graphics screen.
; INPUT: None
; OUTPUT: Just to the screen.
; REGISTERS USED: No registers are modified.
; SEGMENTS REFERENCED: Upom entry ES: must point to the screen RAM
; at B8000h.
; ROUTINES CALLED: None
; SPECIAL NOTES: None
;
cls proc far
push cx ; save registers
push ax
;
; set up the registers
mov cx,2000h ; word count of whole screen
mov ax,0FFh ; zero pattern for screen
mov di,ax ; get starting address
cld ; go in forward direction
;
; clear screen with a single string operation
rep stosw ; this clears screen
;
pop ax ; restore registers
pop cx
ret ; return
cls endp
;-------------------------routine ends---------------------------+


  3 Responses to “Category : Assembly Language Source Code
Archive   : ASM-SUBR.ZIP
Filename : CLSOFF

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/