I tried many ways of doing this and was searching the internet for 2 hours, didn't find anything. Please help, new to assembly. I realised that I have to convert the number into a string, but I didn't succeed in doing so.
Last attempt:
pint:
.repeat:
mov ax, 10
div al
mov cl, [al]
mov al, [ah]
mov ah, 0Eh
add ah, 48
int 0x10
sub ah, 48
mov al, [cl]
cmp al, 0
je .done
jmp .repeat
.done:
ret