NASM code:
section .text
global _start
_start:
mov eax,22
printDecimal:
push eax
printDecimalSub:
mov edx,0
mov ecx,10
div ecx
push eax
mov eax,4
mov ebx,1
mov ecx,edx
add ecx,48
mov edx,1
int 80h
pop eax
cmp eax,0
jne printDecimalSub
printBinary:
exit:
mov eax,1
The code works but nothing is displayed on screen.
I don't understand where I made a mistake. I am on linux.