This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C51 Shifting integers

Trying to determine the behavior of the C51 compiler when performing a '>>' on a negative integer.

The C90 indicates that this is compiler implementation dependent.

Will the compiler shift the sign, or does it insert 0's?

Thanks in advance for any replies.