On 15 May 2015 at 21:47, glen herrmannsfeldt <[email protected]> wrote:
> In the HLASM release 5 manual, there is an example:
>
>   "If a register is specified with base address zero, the
>    assembler will use it in preference to the default use
>    of register zero. For example:
>
>    | USING 3,0
>    | LA 7,5
>    | generates the instruction X'41703005'; in the absence of
>    | the USING statement, the generated instruction would
>    | be X'41700005'.

This is surely just a special case of the general rule that when more
than one register is available to resolve a base-displacement address,
the assembler first tries to use the register that creates the
smallest displacement, and if all such displacements would be the
same, uses the higher numbered register.

Tony H.

Reply via email to