On 2012-08-27 11:26, John Ehrman wrote: > > There's no need for a based branch: just write > > JH INVALID_RC (as before) > LARL 0,START > AR 15,0 > BR 15 > START J RC0 > J RC4 > J RC8 > Assuming the content of R15 (and R0) is expendable. Otherwise a BR where one loads the register with an offset from the current CSECT is hardly different from a based branch.)
> You can check that the return code is a multiple of 4 with a TMLL > instruction: > > TMLL 15,B'0011' > JNZ BadRetCode > Nice. -- gil