Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char format[] = "%s %s\n";
- char hello[] = "Hello";
- char world[] = "world";
- void main( void )
- {
- __asm
- {
- mov eax, offset world
- push eax
- mov eax, offset hello
- push eax
- mov eax, offset format
- push eax
- call printf
- //clean up the stack so that main can exit cleanly
- //use the unused register ebx to do the cleanup
- pop ebx
- pop ebx
- pop ebx
- }
- }
Add Comment
Please, Sign In to add comment