title: How to add number in nasm assembly
body: <p>I have the following variables (x,y) that I read user provided data into and then attempt to add them and finally outputting the result to the terminal</p>
  <pre><code>section .bss
  
          ; first number
          x resb 5
  
          ; second number
          y resb 5
  
          ; sum 
          z resb 10
  </code></pre>
  <p>this is out I am trying to add them</p>
  <pre><code>    ; sum the two numbers
      mov eax, x      ; moves the value of x into eax register
      add eax, y      ; adds value of y to what ever value is in eax 
    
  
  
      ; Output value of z
      mov eax, 4  ; system call (sys_write)
      mov ebx, 1  ; file descriptor (stdout)
      mov ecx, z  ; 
      mov edx, 10 ;
      int 0x80    ; kernel call
  
  </code></pre>
  <p>this is the output of my program</p>
  <pre><code>welcome please enter two numbers 
  Enter first number 
  123
  Enter second number 
  23
                      
  </code></pre>
  <p>why am i getting an empty line for the value of z</p>