Created
September 29, 2021 11:54
-
-
Save timsneath/72a720631456c133c5c875c27882fedb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
const address = -69795452; | |
const UINT32_MAX = 0xFFFFFFFF; | |
// Two's complement | |
print((UINT32_MAX - address.abs() + 1).toRadixString(16)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment