[A83] Re: Signed division by a power of two.
[Prev][Next][Index][Thread]
[A83] Re: Signed division by a power of two.
SRA preserves the most significant bit, not the carry bit :) The carry bit
becomes whatever got pushed off.
>
>Hence the mnemonic SRA, which stands fro Shift Right Arithmetical, it was
>designed with math in mind. If you want to shit right without preserving
>the carry bit, you want SRL, or Shift Right Logical, which is usefull for
>unsigned numbers and logical (hence the name) operations
>
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963