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:

    I went to the circus, and loafed around the back side till the watchman went by, and then dived in under the tent. I had my twenty-dollar gold piece and some other money, but I reckoned I better save it.... I ain’t opposed to spending money on circuses, when there ain’t no other way, but there ain’t no use in wasting it on them.
    Mark Twain [Samuel Langhorne Clemens] (1835–1910)

    That when that knot’s untied that made us one,
    I may seem thine, who in effect am none.
    And if I see not half my dayes that’s due,
    What nature would, God grant to yours and you;
    Anne Bradstreet (c. 1612–1672)