> LH R1,=H'-4096'
> USING -4096,R1
> LA R2,*
> LA R3,-4(,R2)
>
> What does R3 now address?
>
> This caused a great deal of debate on this list several years
> ago. Very few contributors got it right.
I would assume that the last LA would just add 0000FFFC to the contents of R2.
But the contents of R2 seem undefined; we need more information. I cheated and
tried to assemble your code. It needs a base register to address the literal.
It then uses that same register to assemble "LA R2,*" and all the R1 stuff
isn't used anymore. If I change the code to...
LHI R1,-4096
USING -4096,R1
LA R2,*
LA R3,-4(,R2)
...to get rid off the base register requirement it doesn't assemble anymore:
000000 A718 F000 FFF000 21 LHI R1,-4096
R:1 FFF000 22 USING -4096,R1
000004 0000 0000 00000 23 LA R2,*
** ASMA307E No active USING for operand *
** ASMA435I Record 5 in NMBTEST.FQ.SRC(TEST) on volume: T0P007
000008 4130 2FFC FFFFFC 24 LA R3,-4(,R2)
So it all seems to depend on the active usings that aren't specified in the
original question....
Fred!
-----------------------------------------------------------------
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.
Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-----------------------------------------------------------------