So what happens when R0 happens to contain the same value as the prefix Reg of the CPU that handles this code? Would that be how one gets to "relative" 0 in this particular LPAR? (Absolute address 0 is owned by the Hypervisor if I understand how IBM implemented PR/SM).

Regards,
Steve Thompson



On 11/6/19 1:01 PM, Steve Smith wrote:
Register 0 cannot be used as a base or index register.  This is because 0
in the base or index register field or an instruction means "no register".
The assembler has always allowed the specification of 0 for either to
satisfy the people who just like to code default stuff.

Clearing a register before LH strongly implies the coder doesn't know what
LH does.

The L R4,AXVAL should be LH.

sas

Reply via email to