If you have APAR PH38969 (from July 2021) installed, HLASM
supports the new option TYPECHECK(NOSIGNED) which bypasses
checking for whether an immediate operand value is signed or
not.  This allows a signed value to be used for an unsigned
immediate operand and the other way round, provided that the
value is still within the valid range for the size of the
operand field.

This is safer than the old trick of using TYPECHECK(NOMAGNITUDE)
in such cases as it does not tolerate values which are outside
the valid range.  However, as it is effectively a way of quietly
hiding a minor error, it is not an ideal way to write code.

Jonathan Scott, HLASM
IBM Hursley, UK

Reply via email to