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.
So we've learned about the shift right instruction and how it handles integers. If the integer range is -32,768 to 32,767, then what happens if we want to use the shift right instruction for a number outside of that range?
In this lesson, we'll uncover how the shift right instruction can be u...
We now know how the shift right instruction works for integers and double integers. What about words or double words? The shift right instruction operates slightly different when handling word or double word values as compared to integers or double integers.
In this lesson we'll compare the s...
We now know how the shift right instruction works for integers and double integers. What about words or double words? The shift right instruction operates slightly different when handling word or double word values as compared to integers or double integers.
In this lesson we'll compare the s...
10 Comments