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:

    Strictly speaking, one cannot legislate love, but what one can do is legislate fairness and justice. If legislation does not prohibit our living side by side, sooner or later your child will fall on the pavement and I’ll be the one to pick her up. Or one of my children will not be able to get into the house and you’ll have to say, “Stop here until your mom comes here.” Legislation affords us the chance to see if we might love each other.
    Maya Angelou (b. 1928)

    The first general store opened on the ‘Cold Saturday’ of the winter of 1833 ... Mrs. Mary Miller, daughter of the store’s promoter, recorded in a letter: ‘Chickens and birds fell dead from their roosts, cows ran bellowing through the streets’; but she failed to state what effect the freeze had on the gala occasion of the store opening.
    —Administration in the State of Sout, U.S. public relief program (1935-1943)