From: <oh...@co...> - 2009-05-05 04:37:14
|
Hi, Can anyone tell me how to call Win32 printf from a Nasm program? I've been trying: mov eax, msg push eax call _printf . . . msg: db 'this is a test', 10, 0 and that seems to work, but the stack seems to be messed up after that, so i'm wondering if there needs to be a "pop eax" after the call? Also, what other parameters can be used, e.g., can I provide printf with a format string, and if so, how? Thanks, Jim |