Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- ////////////////////////////////////
- int foo()
- {
- int n = 3;
- __asm
- {
- mov EAX, n
- add EAX, 3
- MOV n, EAX
- }
- return n;
- }
- ////////////////////////////////////////////////////
- int main() //
- {
- int n = foo();
- printf("n = %d\n", n);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement