I'm trying to loop through a piece of code for 5 times but the code loops forever.
It seems like inc cl doesn't occur.
This is my code:
global _main
extern _printf
section .text
_main:
mov cl, 0
loupa:
push message
call _printf
add esp, 4
inc cl
cmp cl, 5
jne loupa
; exit
mov eax,0
ret
section .data
message db 'Hello, World', 10, 0