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 effect, side and/or effect:

    I’m not a military man, Captain. War holds no romance for me. The side effects are repulsive.
    Richard Bluel, and Henry Hathaway. Major Hugh Tarkington (Clinton Greyn)

    Called as partners in Christ’s service,
    Called to ministries of grace,
    We respond with deep commitment
    Fresh new lines of faith to trace.
    May we learn the art of sharing,
    Side by side and friend with friend,
    Equal partners in our caring
    To fulfill God’s chosen end.
    Jane Parker Huber (b. 1926)

    Reckoned physiologically, everything ugly weakens and afflicts man. It recalls decay, danger, impotence; he actually suffers a loss of energy in its presence. The effect of the ugly can be measured with a dynamometer. Whenever man feels in any way depressed, he senses the proximity of something “ugly.” His feeling of power, his will to power, his courage, his pride—they decline with the ugly, they increase with the beautiful.
    Friedrich Nietzsche (1844–1900)