Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //asm.cpp
- #include "stdafx.h"
- #include <iostream>
- extern "C" int GetValueFromASM();
- int _tmain(int argc, _TCHAR* argv[])
- {
- std::cout << GetValueFromASM() << std::endl;
- return 0;
- }
- //header.asm
- .code
- GetValueFromASM proc
- mov eax,2783
- ret
- GetValueFromASM endp
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement