For non-relocatable values, the range of Y values is the same as a signed
halfword.
In my case, I want unsigned values so I can't use Y.
I ended up coding:
DC AL2(expr)
DS 0XL(65536-expr) ASSERT: expr was not truncated
-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On
Behalf Of Robert Netzlof
Sent: Saturday, March 26, 2016 11:59
To: [email protected]
Subject: Re: Generating warning for AL2 expression truncation?
On 3/26/16, Steve Smith <[email protected]> wrote:
> Well, it seems to me that the lack of any message on the AL2 is a bug.
>
> Correct me if I'm wrong, but I think Y-cons are signed...
H type constants, yes.
Y type constants, no.
They are address constants, addresses cannot be negative.
They date from the dawn of time, when there were 32K and smaller 360's abroad
in the land.
--
Bob Netzlof a/k/a Sweet Old Bob
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.