title: Assembly print a string
body: <p>I'm having a problem printing a string which I read from the keyboard, if the string is the maximum length then it works but if I enter only 3 characters for example I got a blank black space, this is the code:</p>
  
  <pre><code>assume cs:code,ds:data
  
  data segment
      sir db 12 dup (?),'$'
      mesaj db "Who`s your daddy?",13,10,"$"
  data ends
  
  code segment
  start:
      mov ax,data
      mov ds,ax
      mov dx,offset mesaj
      mov ah,09h
      int 21h
      mov bx,offset sir
      mov sir[0],11
      mov dx,bx
      mov ah,0ah
      int 21h
      mov dx,offset sir
      mov ah,09h
      int 21h
      mov ah,01h
      int 21h
      mov ax,4c00h
      int 21h
  code ends
  
  end start
  </code></pre>