Report as inappropriate.
Demonstration of the 7 bitwise operators on Bytes
(Quick break from my other project)
Literally threw this together in an hour, let me know if any mistakes.
Click on "New Byte" to get a new ByteWindow on screen.
Can edit both numerical and bitstring fields.
Note: Bytes range [-128, 127]
Drag ByteWindows around.
Drag a ByteWindow (fully) into each shaded area (and no more than one per), to enable AND, XOR, and OR operators. Click on these operator buttons to get result.
Note: Cannot have more than 5 ByteWindows open at a time (click on 'x' button to close out. Also results will stack on each other)
OPERATORS
& And
^ Exclusive Or
| Inclusive Or
~ Inverse
<< Left Shift
>> Right Shift
>>> Unsigned Right Shift
Reusable GUI Components can be found here:
http://www.greenfoot.org/scenarios/7578
Want to leave a comment? You must first log in.
2013/11/2
2013/11/2