A library of bit operations that use only math to procude the result. Because this is Scratch, bit operations are NOT faster than conventional arithmetic (as they would be in C or Assembly). Contains AND, OR, XOR, NOT operations for both signed and unsigned numbers. Also contains left shift, logical right shift, and arithmetic right shift. Finally, there are utilities for converting from signed (two's complement) and unsigned numbers and for changing the amount of bits within a number (this is initialized to 32).
Do not attempt to perform unsigned operations or logical right shift on negative numbers. There is NOT error checking and the results cannot be assumed to be correct. Use the proper signed / unsigned operations. If unsure, use signed. Do not attempt to use numbers which are larger than the bit length. These are NOT error-checked either. It will allow you to use 257 in operations even if the bit length is 8 (0-255). I am assuming the largest bit length is 64 (because Scratch will start converting to float after this). Do not use floating-point numbers as operands.