Advertisement
Guest User

Untitled

a guest
Oct 14th, 2014
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. //asm.cpp
  2. #include "stdafx.h"
  3. #include <iostream>
  4.  
  5. extern "C" int GetValueFromASM();
  6.  
  7. int _tmain(int argc, _TCHAR* argv[])
  8. {
  9. std::cout << GetValueFromASM() << std::endl;
  10.  
  11. return 0;
  12. }
  13.  
  14. //header.asm
  15. .code
  16. GetValueFromASM proc
  17. mov eax,2783
  18. ret
  19. GetValueFromASM endp
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement