printf is a call from c that prints
printf will allow us to
main
push rbp mov rbp, rsp sub rsp, 8
section .data
fmtString: db `The numbers are: %d and %d, %s %d %d %d\n`,0
Message: db "Hello World!",0
...
mov rdi, fmtString
mov rbp, rsp mov rdi, fmtString
mov rdi, fmtString
mov rsi, 1234
mov rdx, 4321
mov rcx, Message
mov r8, 7777
mov r9, 888
move r9, 888 push 99 push 100
call printf pop rax pop rax
push 100
mov rax, 0
mov rax, 0
call printf
pop rax
pop rax
mov rsp, rbp
pop rbp
nasm -f elf64 -g message.asm cc message.o -o message