title: How to print a character in Linux x86 NASM?
body: <p>I'm trying to print a single character or a number using <strong>NASM</strong>, targeting an x86 GNU/Linux architecture.</p>
  
  <p>Here's the code I'm using:</p>
  
  <pre><code>section .text
      global _start
  
  _start:
  
      ; Linux printing preparation
      mov eax,4            
      mov ebx,1       
  
      ; Print 'A' character 
      mov ecx,'A'     ; ecx should contain the value to print
      mov edx,1       ; edx should contain how many characters to print
      int 80h
  
      ; System exit
      mov eax,1            
      mov ebx,0            
      int 80h
  </code></pre>
  
  <p>Running this code, however, prints nothing. What am I doing wrong?</p>