On Sun, 24 Oct 2021 00:57:53 +0200, Bernd Oppolzer wrote: >So this means that > >LA 2,ITEM+10 >LH 3,=H'-5' >LA 2,0(2,3) > >will put the address ITEM+5 in register 2, at least in AMODE 24/31? > I believe so. BTW, the HLASM Ref. says the address operand of a USING must be non-negative, but I've tried negative values and they work with no error.
>With AMODE 64, this will be a problem, because the LH instruction only >fills the right half >of the 64 bit register 3, right? > >Is there a way to do this right in all AMODEs? > Does LGH do that for you? (I can no longer make sense of the PoOps.) (But not on hardware levels lacking LGH.) >For positive indexes? (only, if we assume the left half to be zero?) -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
