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 effect, side and/or effect:
“Im not a military man, Captain. War holds no romance for me. The side effects are repulsive.”
—Richard Bluel, and Henry Hathaway. Major Hugh Tarkington (Clinton Greyn)
“Each man has his own vocation. The talent is the call. There is one direction in which all space is open to him. He has faculties silently inviting him thither to endless exertion. He is like a ship in the river; he runs against obstructions on every side but one; on that side all obstruction is taken away, and he sweeps serenely over a deepening channel into an infinite sea.”
—Ralph Waldo Emerson (18031882)
“I have witnessed, and greatly enjoyed, the first act of everything which Wagner created, but the effect on me has always been so powerful that one act was quite sufficient; whenever I have witnessed two acts I have gone away physically exhausted; and whenever I have ventured an entire opera the result has been the next thing to suicide.”
—Mark Twain [Samuel Langhorne Clemens] (18351910)