I'm trying to print a single character or a number using NASM, targeting an x86 GNU/Linux architecture.
Here's the code I'm using:
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
Running this code, however, prints nothing. What am I doing wrong?
 
     
     
    