Ref: Your note of Wed, 10 Apr 2019 16:38:51 -0400 > So..... AL2 is supposed to now support a range of -32K up to +64K-1 ? I > guess that makes it most flexible; if slightly asymmetrical. > > sas
A-type, AD-type and Y-type constants of less than the full length should always have been unsigned, because the sign bit remains in the original location. However, the assembler has always quietly truncated values to fit the specified length, so negative values as well as unsigned values exceeding the field size were accepted. As this rule was not clearly understood, existing programs frequently used negative values in these contexts. To make the FLAG(TRUNC) option more useful for detecting genuine errors, a negative value is not considered to be truncated if it would fit in a signed field of the same size, but a separate warning can be enabled for this case using the FLAG(SIGNED) option. Jonathan Scott, HLASM IBM Hursley, UK
