![]() ![]() There are 2 directions of shifts, a right shift and a left shift. The reader will have to trust that these operators are useful in assembly and will be used in future chapters. These operations will simply be presented here with an example of multiplication and division by a constant. So these operations are difficult to justify in terms of higher level languages. The major reason this might be done in a HLL is to multiplication and division, but as was stated earlier, multiplication and division using constants should not be implemented by the programmer, as the compiler will automatically generate the best code for the situation. There are many reasons to do this, particularly when working with low level programs such as device drivers. Shift allow bits to be moved around inside of a register. The final topic covered in this chapter is the shift operations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |