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)
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
or
LA R3,512(,R2) <- Variant 3
?
Note that these instructions do not always do the same thing.
In AR mode, Variant 2 will set AR3 to zero, whereas Variant 3
will copy AR2 to AR3.