diff options
author | Oskar <[email protected]> | 2024-08-21 18:08:30 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-08-21 18:08:30 +0200 |
commit | e747f69eb9b34f2c99472ca1cd17e049c1b74c9c (patch) | |
tree | bf082a6c2a00f29cdc81f5a2b9b1699c94eb1128 /4p25.cpp | |
parent | 5562f3eb30418f33ba2d2b4634e8d7a2f5d49dc5 (diff) |
more
Diffstat (limited to '4p25.cpp')
-rw-r--r-- | 4p25.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/4p25.cpp b/4p25.cpp new file mode 100644 index 0000000..22070d3 --- /dev/null +++ b/4p25.cpp @@ -0,0 +1,28 @@ +#include <iostream> + +/* + * + * 4.25 + * + * + */ + +int main () { + + /* + + 01110001 (q) + NOT + 11111111 11111111 11111111 10001110 + << 6 + 11111111 11111111 11100011 10000000 (my own calculations) + 11111111 11111111 11100011 10000000 (output from gdb, added spaces) + (seems correct!) + */ + + // Quick little test where we can examine with GDB if i did it correctly. + int8_t ch = 0b01110001; + int32_t cf = ~ch << 6; + std::cout << cf << std::endl; + return 0; +} |