Advertisement
dllbridge

Untitled

Nov 19th, 2022
1,006
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. int a = 1;
  5. int b = 0;
  6.  
  7. //////////////////////////////////////////////////////////////
  8. int main()                                                  //
  9. {
  10.  
  11.     printf("b = %d \n", b);
  12.  
  13.   __asm
  14.     {
  15.         mov  eax, a    
  16.         inc  eax
  17.         add  eax, 1000
  18.         shr  eax, 2
  19.         mov  b, eax
  20.     }
  21.  
  22.     printf("b = %d \n", b);
  23.    
  24. return 0;
  25. }
  26.  
  27.  
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement