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:
“What is done for science must also be done for art: accepting undesirable side effects for the sake of the main goal, and moreover diminishing their importance by making this main goal more magnificent. For one should reform forward, not backward: social illnesses, revolutions, are evolutions inhibited by a conserving stupidity.”
—Robert Musil (18801942)
“We say justly that the weak person is flat, for, like all flat substances, he does not stand in the direction of his strength, that is, on his edge, but affords a convenient surface to put upon. He slides all the way through life.... But the brave man is a perfect sphere, which cannot fall on its flat side and is equally strong every way.”
—Henry David Thoreau (18171862)
“At the heart of the educational process lies the child. No advances in policy, no acquisition of new equipment have their desired effect unless they are in harmony with the child, unless they are fundamentally acceptable to him.”
—Central Advisory Council for Education. Children and Their Primary Schools (Plowden Report)