I went with Tony's modulo/remainder logic (which is what I was trying to code 
in the first place), as it is more compact.

-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of Paul Gilmartin
Sent: Friday, August 19, 2016 18:53
To: [email protected]
Subject: Re: Friday puzzle: CNOP 1,2

On 2016-08-19 16:01, Ngan, Robert wrote:
> I wanted the length aligned on the odd byte, so the immediately following 
> (labeled) string was on a halfword boundary and could therefore be referenced 
> using a LARL.
>
How about:
         DS    C        Allow at least one byte
         DS    0H       Pad to even boundary
         ORG   *-1      Back up to odd boundary.

-- gil

 CSC - This is a PRIVATE message - If you are not the intended recipient, 
please delete without copying and kindly advise us by e-mail of the mistake in 
delivery.  NOTE: Regardless of content, this e-mail shall not operate to bind 
the Company to any order or other contract unless pursuant to explicit written 
agreement or government initiative expressly permitting the use of e-mail for 
such purpose.

Reply via email to