; Volání externí funkce printf() z Céčka %include "rw32.inc" CEXTERN printf ; nebo: extern printf section .data sFormat db "Printed by printf() string = %s, A = %d, B = %d, C = %d", 0 x dd -56 sSomeString db "some string",0 section .text main: enter 0,0 mov eax,100 ; printf(sFormat, "some string", 5, x, 100); push eax ; 100 push dword [x] push 5 push sSomeString ; -> "some string",0 push sFormat call printf add esp, 5*4 ; volající uklízí ;mov esp, ebp - stejný efekt uklizení leave ret