Advertisement
dllbridge

Untitled

Mar 26th, 2025
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.62 KB | None | 0 0
  1.  
  2.        
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. #include   <stdio.h>       
  7.        
  8. /////////////////////////////////////////////////
  9. int main()
  10. {
  11.    
  12.     int x = 0xA1B2C3D4;
  13.  
  14.     int x2 = x << 24;
  15.    
  16.     int x3 = x << 16;
  17.    
  18.    
  19.    
  20.    
  21.     x3 = x3 >> 24;
  22.     x3 = x3 << 24;
  23.     x3 = x3 >>  8; 
  24.     x3 = x3 - 0xFF000000;
  25.    
  26.     x3 = x3 + x2;  
  27.    
  28.    
  29.     x2 = x;
  30.    
  31.     x2 = x2 >> 24;
  32.    
  33.     x2 = x2 - 0xFFFFFF00;
  34.    
  35.    
  36.     x3 += x2;
  37.    
  38.    
  39.    
  40.     x2 = x;
  41.    
  42.     x2 = x2 << 8;
  43.     x2 >>= 24;
  44.     x2 <<=  8;
  45.     x2 -= 0xFFFF0000;
  46.     printf("%X\n", x2);
  47.    
  48.     x3+=x2;
  49.    
  50.     printf("%X\n", x3);            ///  x3
  51. }
  52.  
  53.  
  54.  
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement