TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: JOE KOSS
from: CRAIG HART
date: 1997-02-10 08:36:00
subject: SHL.

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.