On Wed, 18 Aug 2010 16:16:58 -0500, McKown, John wrote:
>> -----Original Message-----
>>
>> I have always used something like this:
>>
>> QMGREX01 CSECT ,
>> STM R14,R12,12(R13)
>> LR R11,R15
>> USING QMGREX01,R11,R12
>> LA R12,4095(R11)
>> LA R12,1(R12) <----------------- noticed that I
>> added 1 to
>> the 4095 bump.
>> LR R8,R1
>> USING WORKAREA,R13
>>
>> Is this not the way to do it?
>
>Today, I'd use LAY instead of two LA instructions:
>
> LAY R12,4096(R12)
ITYM LAY R12,4096(,R11)
Only if you are running on a processor with the long-displacement
facility. Otherwise you could use
LR R12,R11
AHI R12,4096
or
LARL R12,QMGREX01+4096
(using Mike's label)
--
Tom Marchant