On Tue, 19 Apr 2016 21:06:21 -0400, Phil Smith III wrote:

>Tom Marchant wrote:
>
>>Why not make your STC run AMODE 64, at least part of the time?
>
>Yeah, that's an option, but it's a lot more work and has other possible
>impacts

It's not that hard.

         STMG  R2,R15,SAVE64    save 64-bit registers   
         LLGTR BASE1,BASE1      clear bits 0-32 of first base register
         LLGTR BASE2,BASE2      clear bits 0-32 of second base register
         ...                    clear bits 0-32 of more base registers
         SAM64 ,                switch to AMODE 64
         GETMAIN ...            get storage to copy the data to
         ST    R1,WORKADDR      save the address of the area obtained
         ...                    set up regs for MVCL
         MVCL  ...              copy it below the line
         SAM31 ,                back to AMODE 31
         LMG   R2,R15,SAVE64    restore the high halves of the registers

Now the Java data is all below the line. Yeah, I know, there will probably be a 
bit more work as you will have to adjust pointers, for example.

-- 
Tom Marchant

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to