title: x86 Video mode Clear Screen
body: <p>Hello I'm trying to clear the screen in DOS video mode with this code.</p>
  
  <p>But when I run it, the dot is still there! </p>
  
  <pre><code>    org 100h
  
      mov     ah, 0       ; set display mode function.
      mov     al, 13h     ; mode 13h = 640x480 pixels, 256 colors.
      int     10h         ; set it!
  
      mov     cx, 10      ; column
      mov     dx, 10      ; row
      mov     al, 15      ; white
      mov     ah, 0ch     ; put pixel
      int     10h         ; draw pixel
  
      ; -------  clear the screen ----------     
      ; -------  doesn't work! dot is still there
  
      mov ax,0B800h
      mov es,ax
      xor di,di
      xor ax,ax
      mov cx,2000d
      cld
      rep stosw
  
      ; -------------------------------------
  
      ;wait for keypress
      mov ah,00
      int 16h
  
      mov ax, 4c00h ; exit to operating system.
      int 21h
  
      ;======================================================
  </code></pre>
  
  <p>I tried resetting the video mode with INT 10 but this gives me blinks which is unwanted inside my loop</p>