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:
“Populism is folkish, patriotism is not. One can be a patriot and a cosmopolitan. But a populist is inevitably a nationalist of sorts. Patriotism, too, is less racist than is populism. A patriot will not exclude a person of another nationality from the community where they have lived side by side and whom he has known for many years, but a populist will always remain suspicious of someone who does not seem to belong to his tribe.”
—John Lukacs (b. 1924)
“As for charity, it is a matter in which the immediate effect on the persons directly concerned, and the ultimate consequence to the general good, are apt to be at complete war with one another.”
—John Stuart Mill (18061873)