Guest User

Untitled

a guest
Dec 13th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include "stdio.h"
  2.  
  3. int main() {
  4.     unsigned long res;
  5.     asm ("movl %%esp,%0" : "=r"(res));
  6.     printf("esp == %d\n", res);
  7.     return 0;
  8. }
  9.  
  10. //test.c: Assembler messages:
  11. //test.c:5: Error: suffix or operands invalid for `mov'
Add Comment
Please, Sign In to add comment