Paul Gilmartin suggested...
>Given that the hardware now supports unsigned halfwords, perhaps
HLASM should accommodate. Perhaps HU'65535' or YU(65535).
Unsigned integer values are supported by HLASM,, but the syntax is
slightly different:
DC H'U65535'
John Ehrman
IST@LISTSERV.UGA.EDU> wrote on
03/29/2016 11:52:48 AM:
> From: Paul Gilmartin <0014e0e4a59b-dmarc-requ...@listserv.uga.edu>
> To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
> Date: 03/29/2016 11:54 AM
> Subject: Re: Generating warning for AL2 expression truncation?
> Sent by: I
On 2016-03-28, at 16:18, Ngan, Robert wrote:
> 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
STSERV.UGA.EDU] On Behalf Of Robert Netzlof
>> Sent: Saturday, March 26, 2016 11:59
>> To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
>> Subject: Re: Generating warning for AL2 expression truncation?
>>
>> On 3/26/16, Steve Smith <sasd...@gmail.com> wrote:
>>
>>&g
Subject: Re: Generating warning for AL2 expression truncation?
On 3/26/16, Steve Smith <sasd...@gmail.com> 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 con
Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On
Behalf Of Robert Netzlof
Sent: Saturday, March 26, 2016 11:59
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Generating warning for AL2 expression truncation?
On 3/26/16, Steve Smith <sasd...@gmail.com> wrote:
> Well, it se
I agree it is rather strange, but at least it is consistent:
001 dc al3(x'100')
2 end
It has been like this since the early sixties.
Perhaps the error message on Y type address constants was added
On 3/26/16, Steve Smith 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
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, so it will warn
for anything over 32k-1. AL2 is unsigned, but I don't think it's
defined as a modulo function.
sas
On 3/25/2016 18:43, John P. Hartmann wrote:
Use
Use a Y type constant.
1170 1 dc al2(7)
0002 142C 2 dc y(70700)
** ASMA072E Data item too large
3 end
On 03/25/2016 11:00 PM, Ngan, Robert wrote:
I had a
I had a program that was generating a (non-relocatable) value larger than 65535
within an AL2 constant, and it's being silently truncated.
A (brief) look at the manuals did not reveal any options for flagging this type
of error. Did I miss something, or is there no way to flag this condition?
11 matches
Mail list logo