In this lesson we are going to discuss one of the instructions that are in the Basic or Main instruction set, in a folder named shift and rotate.
We will do a little work with the instruction called Shift Right. This can be a useful instruction for creating/incrementing sequences and the like. This instruction allows you to shift a bit pattern within a word.
We are going to discuss what parameters will be needed to use this instruction, fill them in and test the instruction online. Let’s take a look at how we do some bit shifting.
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 val...
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...
5 Comments