On Sep 11, 2010, at 15:03, Binyamin Dissen wrote: > On Fri, 10 Sep 2010 17:18:39 -0600 Paul Gilmartin <paulgboul...@aim.com> > wrote: > > :> Active Usings: None > :> Loc Object Code Addr1 Addr2 Stmt Source Statement > :>000000 00000 0000C 1 NEGDISP CSECT > :> 2 * > :>000000 0000 0000 00000 3 LA R3,-4(,R2) > :>** ASMA028E Invalid displacement > :>** ASMA435I Record 3 in SPPG.NEGDISP.JOB07274.D0000101.? on volume: > :> 4 * > :> R:1 FFF000 5 USING -4096,R1 > :>000004 4132 1FFC FFFFFC 6 LA R3,-4(R2) > :> 7 * > :>000008 4130 2FFC FFFFFC 8 LA R3,-4(,R2) > :> 9 * > :> 10 YREGS > > Seems like a bug in USING. Perhaps the absolute negative base is confusing it. > Well,
o Quality implementations should be able to deal with trivially "confusing" constructs. o This used to work correctly in Assembler H. But that was a long time ago. o As Dave Rivers notes, the LRM prohibits this USING. o But no error message was issued at the USING. HLASM ought to decide whether USING is Working As Designed and change the documentation (and fix the address resolution), or Broken As Documented and fix the code. -- gil