On Sun, 12 Sep 2010 17:53:13 -0400, Justin R. Bendich wrote:

>LA    R1,256           <- Line 1
>         USING 256,R1           <- Line 2
>         LA    R3,512(R2)       <- Line 3
>
>The thread has been that, because of line 2, the assembler will
>generate line 3 as follows:
>
>   4132 1100            LA    R3,512(R2)

That is correct.  Index register 2 + base register 1 + 256.

>
>If what i really want is for R3 to contain R2 + 512 (subject to
>addressing-mode constraints, as usual), does this mean that i
>really should be coding either
>
>         LA    R3,512(R2,)      <- Variant 2

This is identical to the instruction above.

--
Tom Marchant

Reply via email to