NASM shift operators

Posted by Hudson Worden on Stack Overflow See other posts from Stack Overflow or by Hudson Worden
Published on 2012-03-31T23:04:03Z Indexed on 2012/03/31 23:29 UTC
Read the original article Hit count: 226

Filed under:

How would you go about doing a bit shift in NASM on a register? I read the manual and it only seems to mention these operators >>, <<. When I try to use them NASM complains about the shift operator working on scalar values. Can you explain what a scalar value is and give an example of how to use >> and <<. Also, I thought there were a shr or shl operators. If they do exist can you give an example of how to use them? Thank you for your time.

© Stack Overflow or respective owner

Related posts about x86