I'd like to write simple Hello World program in assembler. Here what I've found:
global _main
extern _printf
section .text
_main:
push message
call _printf
add esp, 4
ret
message:
db 'Hello, World', 10, 0
My question is: since printf
function can take more the a one parameter whats with other prams when there is no other provide as in the example? Will it take the other params just from the stack whenever it is there?