Advertisement
Guest User

Untitled

a guest
Jan 7th, 2014
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void func1() {
  5.     float temp;
  6.     cin >> temp;
  7.     __asm {
  8.         mov eax, temp
  9.     }
  10. }
  11.  
  12. void func2() {
  13.     float temp;
  14.     func1();
  15.     __asm {
  16.         mov temp, eax
  17.     }
  18.     cout << temp;
  19. }
  20.  
  21. int main() {
  22.     func2();
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement