SHL/SHR/ROL/ROR

BlitzMax Forums/BlitzMax Programming/SHL/SHR/ROL/ROR

If A = %00000001, and I perform an SHR on it, I expected (and needed) the result to be %10000000, but it isn't - the bits that drop off the end don't carry over to the left and the result is %00000000.

We don't seem to have ROL or ROR functions but I'm sure I've done this before. Anybody know how? :/