On 2013-11-21, at 19:37, Jon Perryman wrote:

> R10 EQU 10 simply means use the value of 10. It has nothing to do with 
> register 10 except when used in a place where a register is expected.
>     ...
> Use of R10 is simply a way to make the code a little more readable.
>
Doesn't HLASM nowadays support defining symbols with a "Register"
attribute?  But how is this useful?  Can HLASM issue warnings when
a register symbol is used in a place where a register is not expected?:

         LA    R1,R10  * Did the programmer mean LR?

If this facility had been aboriginal, IHBINRRA could have been far
less complex.  Alas compatibility precludes any retrofitting.

-- gil

Reply via email to