Category : Assembly Language Source Code
Archive   : JED.ZIP
Filename : CLEAR.SRC

Output of file : CLEAR.SRC contained in archive : JED.ZIP
; CLEAR -- Clears the entire visible screen buffer
; Last update 3/16/89
; Caller must pass:
; In VidAddress: A FAR pointer to the video refresh buffer
; In ClearAtom: A word containing the video attribute to be
; used in the high byte, and the fill character
; to be used in the low byte.
; In BufLength: The size of the refresh buffer in bytes
; Action: Blasts copies of ClearAtom into the refresh buffer
; until the buffer is filled.
Clear MACRO VidAddress,ClearAtom,BufLength
les DI,DWORD PTR VidAddress ; Load ES and DI from FAR pointer
mov AX,ClearAtom ; Load AX with word to blast into memory
mov CX,BufLength ; Load CX with length of buffer in bytes
shr CX,1 ; Divide size of buffer by 2 for word count
rep stosw ; Blast away!
GotoXY 0,0 ; Move hardware cursor to UL corner of screen

  3 Responses to “Category : Assembly Language Source Code
Archive   : JED.ZIP
Filename : CLEAR.SRC

  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: