title: Assembly 64 (NASM), ending of .data chars
body: <p>I understand that in <code>.data</code> section there are arrays of chars, and last bit of array is null (0). Also, <code>10</code> is a code for new line. My question is, why when in <code>.data</code> section I delete <code>10</code> and left <code>0</code> program won't print anything, but when I delete <code>0</code> and left <code>10</code> program is working?</p>
  
  <pre><code>global main
  extern printf
  
  section .data
  gwiazdka db '*',10,0      ;HERE is my question
  
  section .text
  main:
  mov rbx, 0
  
  petla:
  mov rdi, qword gwiazdka
  mov rsi, rbx
  mov rax, 0
  call printf
  
  inc rbx
  cmp rbx, 4
  jne petla
  
  mov rax, 1
  int 80h
  </code></pre>
  
  <p>I want to build a square from stars and I don't get it why I can't print single chars without starting new line... 
  I compile like that:</p>
  
  <pre><code>nasm -f elf64 program.asm
  gcc program.o -o program
  ./program
  </code></pre>