Are the rules special for literals?

Yes. Literals have always aligned on a "multiple-of-length-power2" boundary.
=CL8... will be on a doubleword. 

>  What if you want a speciic length?:
>    LARL R3,=CL5'ABCDE-'

You can't always get what you want. -- Mick Jagger

CL5'whatever' is a 5-byte literal.

Charles


-----Original Message-----
From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU]
On Behalf Of Paul Gilmartin
Sent: Monday, November 8, 2021 1:18 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Base-less macros

On Nov 8, 2021, at 13:57:10, Melvyn Maltz wrote:
>     ...
> LARL R3,=C'ABCDE-'
> 
> Yes, it's a 5-byte literal extended to 6 to keep the LARL happy
>  
Does giving a character constant even length guarantee even
alignment?  I'm thinking of such as:

      DC. 0H'0'
EVEN  DC  C'?'
ODD   DC  C'ABCDE-'

Are the rules special for literals?  What if you want a
speciic length?:

    LARL R3,=CL5'ABCDE-'

My head hurts,
gil

Reply via email to