[A83] Re: Rotate 16 bits?
[Prev][Next][Index][Thread]
[A83] Re: Rotate 16 bits?
>rr h rr l
This will not work. If the MSb of L is 1, then it is rotated into the
carry, and then never rotated into H. That is why the ADC is needed.
; c: %0 H: %10000000 L: %10000000
rr h ; c: %1 H: %00000000 L: %10000000
rr L ; c: %1 H: %00000000 L: %00000001
; should be:
; c: %0 H: %00000001 L: %00000001
Stupid like a fox!
Look ma, I'm an artist: http://aaronstj.deviantart.com
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
Follow-Ups: