Paul,

To my mind, X'FFFF' is also -1, which is in the halfword range.

Thus it merits a warning as the assembler cannot know whether the
X'FFFF' value of H5 is intended to be signed or unsigned.
Neither should it make any assumptions. So I'm entirely
fine with HLASM accepting the value and using it, while
issuing a warning. It does what it is told to do, but it might
not be what the programmer intended it to do ;-)

Abe Kornelis
===========

Op 18-3-2017 om 23:21 schreef Paul Gilmartin:
> Compare this with LHI 1,H5 and the next which generate a warning (do
> we need the warning ?)
> Yes, since X'FFFF' is 65535, and not in the halfword range, -32768 to +32767.
>

Reply via email to