Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- #include <stdio.h>
- /////////////////////////////////////////////////
- int main()
- {
- int x = 0xA1B2C3D4;
- int x2 = x << 24;
- int x3 = x << 16;
- x3 = x3 >> 24;
- x3 = x3 << 24;
- x3 = x3 >> 8;
- x3 = x3 - 0xFF000000;
- x3 = x3 + x2;
- x2 = x;
- x2 = x2 >> 24;
- x2 = x2 - 0xFFFFFF00;
- x3 += x2;
- x2 = x;
- x2 = x2 << 8;
- x2 >>= 24;
- x2 <<= 8;
- x2 -= 0xFFFF0000;
- printf("%X\n", x2);
- x3+=x2;
- printf("%X\n", x3); /// x3
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement