So, i faced with a problem, that print each value of variable on a new line, but format for print is a line. I really spend a lot of time that find solution. But this solution don't work. I think that is because i am noob in assembler. So, i deleted all my fail... This is my code:
global main
extern printf
section .data
str: db "%i", 10, 0
count: dw 1
section .text
main:
start:
push dword [count]
push dword str
call printf
push dword [count]
push dword str
call printf
So, now in terminal printed this:
1
1
What do I need to do to print like this:
1 1
Please, example me code, that i understand.... Please, don't send me first link in internet with similar problem, because i tried this. I really don't understand... How i can insert in print string with differents char, for example ':', 'space', '/' and other...? Thanks you :)