IMHO it is cleaner and more readable to do

L R15,=V(ENTRY)

The other code is not only a Rube Goldberg, but it has a 50/50 chance of 
blowing up; V(ENTRY) has full word alignment.

Of course, on current processors there are better options.

BTW, is there some way to get the offset of an external dummy ("pseudo 
register") into the displacement without resorting to an ORG?

--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Assembler List <[email protected]> on behalf 
of John McKown <[email protected]>
Sent: Wednesday, June 19, 2019 1:31 PM
To: [email protected]
Subject: Loading a VCON with as an immediate value

To me, it seems silly to do the following, if I am only loading a VCON in a
single place.

L R15,=V(ENTRY)

When I can do:

 LLILF R15,0
 ORG *-4
 DC V(ENTRY)

I am hoping that someone out there can tell me how I can improve the
previous 3 instructions to be something like:

  LLILH R15,ENTRY

HLASM complains the ENTRY is either relocatable or unresolved. Yes, it is
relocatable, but at run time it will be a constant. Is there some "magic"
to get HLASM to know this?


--
Money is the root of all evil.
Evil is the root of all money.
With that in mind, money is made by the government ...


Maranatha! <><
John McKown

Reply via email to