On 8/27/2012 1:19 PM, Tony Thigpen wrote:
Your code requires 2 scratch registers. The following uses just 1 scratch register and does not require literal storage:LA R0,3 NR R0,R15 LTR R0,R0 BNZ BAD_RC
Why do you need the LTR? NR sets the condition code. When I bother to add check code (mostly non-IBM calls), I use CL R15,=A(maxvalue) BH error this test catches negative returns as well. Gerhard Postpischil Bradford, VT