Addressing Mode - Useful Side Effect

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:

    It seems incredible, and I love them no less; and I can say that I would rather die than see any diminution of it on one side or the other.
    Elizabeth I (1533–1603)

    We all have—to put it as nicely as I can—our lower centres and our higher centres. Our lower centres act: they act with terrible power that sometimes destroys us; but they don’t talk.... Since the war the lower centres have become vocal. And the effect is that of an earthquake. For they speak truths that have never been spoken before—truths that the makers of our domestic institutions have tried to ignore.
    George Bernard Shaw (1856–1950)