When you're creating or incrementing sequences, it's good to understand what happens to the bits in a shift right instruction so that you know how it can be applied to your project. In this lesson we're going to take a look at the numbers we use with the shift right instruction, and how those values are handled.
We'll work with positive and negative integers represented in 16-bit binary format, and understand what happens to those 16-bit integers in the shift right instruction.
We're also going to look at what happens when we shift right by a value greater than one. Let's see what happens with some specific examples of bit shifting.