On 3/31/2016 2:03 PM, Tom Marchant wrote:
On Wed, 30 Mar 2016 07:42:10 -0700, Ed Jaffe wrote:

      LOAD  EPNAME==CL8'MSGTABLE'    Load external message table
      NILH  R1,X'7FFF'               Turn off AMODE indicators
      NILL  R1,X'FFFE'               (same)
      STG   R1,MsgTable              Save clean table address
ITYM R0.

And the manual doesn't specify that the address returned is a clean 64-bit
address except if it is AMODE 64. So I'd suggest replacing the NILH with

        LLGTR R0,R0

Haha! You're right (re: R0) and good suggestion. That's better code...

(Still not a bad effort for typing HLASM code into an email. ;-) )

Another alternative would be to make MsgTable a fullword and change the AG to an AGF in the indexing/lookup code.

--
Edward E Jaffe
Phoenix Software International, Inc
831 Parkview Drive North
El Segundo, CA 90245
http://www.phoenixsoftware.com/

Reply via email to