title: How to draw a square (int 10h) using loops?
body: <p>Can you use new line that has 21h on a setting of 10h?<br>
  if not then how would it be possible to set a new line for 10h via 8086?
  What im trying to do is to use loops that would resemble a square.</p>
  
  <pre><code>org  100h
  
  mov ah, 0   ; set display mode function.
  mov al, 13h ; mode 13h = 320x200 pixels, 256 colors.
  int 10h     ; set it!
  
  mov cx, 10
  mov dx, 10
  mov ah, 0ch ; put pixel
  int 10h
  
  colcount:
  inc cx
  int 10h
  
  cmp cx, 20
  JNE colcount
  
  rowcount:
  inc cx
  int 10h
  
  cmp cx, 20
  JNE rowcount
  </code></pre>