Re: Generating warning for AL2 expression truncation?

2016-03-28 Thread John P. Hartmann
The contents of a storage location is a bunch of bits. Signed or not is an interpretation of the instruction accessing the location. LH will sign-expand a halfword, so it was treated as signed; LLH does not sign extend, so the same bunch of bits are now taken as unsigned. I don't wish to be

Re: Generating warning for AL2 expression truncation?

2016-03-28 Thread Ngan, Robert
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: DCAL2(expr) DS0XL(65536-expr) ASSERT: expr was not truncated -Original Message- From: IBM Mainframe