Murugan.com
Murugan Andezuthu Dharmaratnam

  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  



8086 Assembly cls clrscr or clear the screen

Home   8086   8086 Assembly cls clrscr or clear the screen         


Simple code clears the screen. It directly wirtes to the video memory to clear whats in that memory. ideally write '' nothing. 

clrscr proc near
   mov ax,0b800h
   mov es,ax
   mov di,0
   mov al,' '
   mov ah,07d
   loop_clear_12:
        mov word ptr es:[di],ax
        inc di
        inc di
        cmp di,4000
        jle loop_clear_12
        ret
endp





  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  

Copyright 2009 @ Murugan Andezuthu Dharmaratnam