Bit manipulation
"Myrna Larson" wrote in message
...
On Mon, 14 Mar 2005 15:01:02 -0800, "Jim Thomlinson"
wrote:
AND, OR, XOR, IMP
Yes, they ARE bitwise, as are NEG, and EQV.
But as for trying to implement shifts using arithmetic, you have to be
careful
re shifting into or out of the sign bit.
Agreed, and my example was simplistic, but again it can be done.
|