title: How do you print a smiley-face in assembly?
body: <p>I wrote a program in assembler and compiled it. <strong>It is meant to print a blue smiley face and then wait for the user to press a key before it terminates.</strong> It does do that last bit but it doesn't print the smiley face. Can someone explain what have I done wrong ?</p>
  
  <pre><code>CSEG segment
  org 100h
  Begin:
  
  mov ax,0B800h
  mov es,ax
  mov di,0
  
  mov ah,31
  mov al,1
  mov es:[di],ax
  
  mov ah,10h
  int 16h
  
  int 20h
  
  CSEG ends
  end Begin
  </code></pre>
  
  <p>I compiled it with <strong>MASM</strong> with a <strong>16 bit linker</strong></p>