OK then explain this: LH is an RX format instruction. What are the D, X and B values if the second operand is simply =H'-5'?
Joe On Sat, Oct 23, 2021 at 6:49 PM Paul Gilmartin < [email protected]> wrote: > On Sat, 23 Oct 2021 18:36:54 -0500, Joe Monk wrote: > > >LH is an RX instruction. > > > >So, LH 3,=H'-5' would give an addressing exception, no? Because the second > >operand is treated as coming from storage? So that would be a negative > >address? > > > No. > > >If you said LH 3,0(=H'-5',2), that would give you ITEM+5? > > > You have a bad use-versus-mention conflation. The value of an > object is not the address of that object. > <https://en.wikipedia.org/wiki/Use%E2%80%93mention_distinction> > > > >On Sat, Oct 23, 2021 at 6:01 PM Bernd Oppolzer wrote: > >> > >> 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 agree. > > -- gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
