Yeah. Also LARL only works for even addresses. What happens (too lazy to
test) if I code LARL R1,=X'012345' and the literal would fall on an odd
address? Is the assembler smart enough to bump it to an even address? Or do
I get an assembly error on the LARL?

Seems odd to me that they limited LARL to even addresses. For Branch
Relative it makes sense; for Load Address Relative not so much.

Charles


-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]]
On Behalf Of Paul Gilmartin
Sent: Saturday, December 9, 2017 6:23 PM
To: [email protected]
Subject: Re: Address of a =LITERAL

On 2017-12-09, at 18:48:22, Charles Mills wrote:

> Really no better than what I suggested below, but for some reason I 
> find the following approach amusing.
> 
> The OP's original plan was to include
> 
> LABEL DC A(=x'123')
> 
> in his table and then, presumably
> 
>      L  Rn,LABEL
> 
> in his executable code. Almost exactly the same effect could be 
> achieved by including
> 
> LABEL LA Rn,=X'123'
> 
> in the table and
> 
>     EX 0,LABEL
>     ...
What if the OP intended the construct as a static initialization or default
setting, possibly to be overlaid later by a different address?

-- gil

Reply via email to