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:

    But the lightning which explodes and fashions planets, maker of planets and suns, is in him. On one side elemental order, sandstone and granite, rock-ledges, peat-bog, forest, sea and shore; and on the other part, thought, the spirit which composes and decomposes nature,—here they are, side by side, god and devil, mind and matter, king and conspirator, belt and spasm, riding peacefully together in the eye and brain of every man.
    Ralph Waldo Emerson (1803–1882)

    Thinking is seeing.... Every human science is based on deduction, which is a slow process of seeing by which we work up from the effect to the cause; or, in a wider sense, all poetry like every work of art proceeds from a swift vision of things.
    HonorĂ© De Balzac (1799–1850)