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:
“My esoteric doctrine, is that if you entertain any doubt, it is safest to take the unpopular side in the first instance. Transit from the unpopular, is easy ... but from the popular to the unpopular is so steep and rugged that it is impossible to maintain it.”
—William Lamb Melbourne, 2nd Viscount (17791848)
“As soon as I suspect a fine effect is being achieved by accident I lose interest. I am not interested ... in unskilled labor.... The scientific actor is an even worker. Any one may achieve on some rare occasion an outburst of genuine feeling, a gesture of imperishable beauty, a ringing accent of truth; but your scientific actor knows how he did it. He can repeat it again and again and again. He can be depended on.”
—Minnie Maddern Fiske (18651932)