Guest User

Untitled

a guest
Jun 24th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. char format[] = "%s %s\n";
  4. char hello[] = "Hello";
  5. char world[] = "world";
  6. void main( void )
  7. {
  8.    __asm
  9.    {
  10.       mov  eax, offset world
  11.       push eax
  12.       mov  eax, offset hello
  13.       push eax
  14.       mov  eax, offset format
  15.       push eax
  16.       call printf
  17.       //clean up the stack so that main can exit cleanly
  18.       //use the unused register ebx to do the cleanup
  19.       pop  ebx
  20.       pop  ebx
  21.       pop  ebx
  22.    }
  23. }
Add Comment
Please, Sign In to add comment