On Dec 30, 2010, at 06:58, McKown, John wrote:

> That is interesting. It is easily "fixed" by putting in a DROP 15 statement 
> after the NOMORE1 labelled instruction. But it makes me wonder about the 20 
> bit offset (-Y) instructions. I'm used to the offset being a 12 bit unsigned 
> number. Which means it ranges from 0 to 4096. For some reason, I thought the 
> 20-bit offsets were likewise unsigned for offsets from 0 to 1048576. But it 
> appears that they are SIGNED offsets, making them range from -524288 to 
> 524287. So it would appear to me that HLASM was written so that a USING is 
> now assumed to cover this entire area (or at least extends the lower limit 
> from 0 to -524288). Sounds like the USING statement needs an enhancment to 
> allow the specification of a lower limit since the lower limit is no longer 
> the actual symbol.
>
That can be a problem for dependent USINGs, even with 12-bit unsigned
displacements.  I encountered it trying to copy a template to a DSECT
and doing "USING TEMPLATE,DSECT+OFFSET".  This gives overlapping USING
warnings for references to locations in the CSECT preceding TEMPLATE.
Yes, an enhancement has been needed ever since the advent of dependent
USINGs.

-- gil

Reply via email to