Currently, we're doing bitwise operation in computer science, and we're learning how to mask a series of binary code into our requirement
Turning 10001000 to 11111111
I can run a OR operation with
OR it with :1111111 (This is the mask)
and that will simply turn 10001000 to 11111111
However, if I wish to turn any positive number in two's complement into a negative number in two's complement.
Is there any mask I could use?
I can use as many masks as I wish.
Turn on thread page Beta
Bitwise operation watch
- Thread Starter
- 14-11-2017 10:31
- Official Rep
- 16-11-2017 13:16
Sorry you've not had any responses about this. Are you sure you've posted in the right place? Here's a link to our subject forum which should help get you more responses if you post there.