Useful Side Effect
Some processors, such as Intel x86 and the IBM/390, have a Load effective address instruction. This performs a calculation of the effective operand address, but instead of acting on that memory location, it loads the address that would have been accessed into a register. This can be useful when passing the address of an array element to a subroutine. It may also be a slightly sneaky way of doing more calculation than normal in one instruction; for example, using such an instruction with the addressing mode "base+index+offset" (detailed below) allows one to add two registers and a constant together in one instruction. the types of addressing modes are, 1.direct addressing, 2.Immediate addressing, 3.indirect addressing, 4.simple addressing.
Read more about this topic: Addressing Mode
Famous quotes containing the words side and/or effect:
“I have often been downcast, but never in despair; I regard our hiding as a dangerous adventure, romantic and interesting at the same time. In my diary I treat all the privations as amusing. I have made up my mind now to lead a different life from other girls and, later on, different from ordinary housewives. My start has been so very full of interest, and that is the sole reason why I have to laugh at the humorous side of the most dangerous moments.”
—Anne Frank (19291945)
“The effect of a good government is to make life more valuable; of a bad one, to make it less valuable.”
—Henry David Thoreau (18171862)