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:
“There are two kinds of liberalism. A liberalism which is always, subterraneously authoritative and paternalistic, on the side of ones good conscience. And then there is a liberalism which is more ethical than political; one would have to find another name for this. Something like a profound suspension of judgment.”
—Roland Barthes (19151980)
“I care not by what measure you end the war. If you allow one single germ, one single seed of slavery to remain in the soil of America, whatever may be your object, depend upon it, as true as effect follows cause, that germ will spring up, that noxious weed will thrive, and again stifle the growth, wither the leaves, blast the flowers, and poison the fair fruits of freedom. Slavery and freedom cannot exist together.”
—Ernestine L. Rose (18101892)