Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
0-A-B != REVERSE(0-REVERSE(A)-REVERSE(B))
Hex Dec Binary
A = A0 160 10100000
B = 4C 76 01001100
0 - A
FFFFFF60 -160 1111111101100000 (lowest 16 bits)
0 - A - B
FFFFFF20 -236 1111111100010100 (lowest 16 bits)
Lowest 8 bits of 0-A-B: 00010100
REVA = 05 5 00000101
REVB = 32 50 00110010
0 - REVA
FFFFFFFB -5 1111111111111011
0 - REVA - REVB
FFFFFFC9 -55 1111111111001001
Lowest 8 bits of 0 - REVA - REVB: 11001001
Reversed Lowest 8 bits of 0 - REVA - REVB: 10010011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.