Hi..
JK> > Note that this only works for unsigned numbers, since there is no
JK> > rotate-arithmatic instruction... RAL would have been nice :-)
JK> Exactly what would RAL do that ROL doesn't?
Allow you to rotate signed numbers, without losing the sign-bit.
JK> The concept of ROLL and Arithmetic Shift are contrary to each other
JK> ..
ROLL? I don't recall mentioning anything to do with ROLL?? Perhaps you mean
ROL? If you are trying to say that ROL and arithmetic shift are contrary,
well yes they are.. THAT was my entire point. Lack of arithmetic shifts my
whole point. It would be nice to have RAL (and RAR) so that you can perform
all the code optimizations that SHL and SHR provide for unsigned numbers on
signed numbers too, without extra code to manage the sign-bit.
Craig
--- FMail/386 1.0g
---------------
* Origin: Comms Barrier BBS +61.3.9585.1112, +61.3.9583.6119 (3:632/533)
|