HP Forums

Full Version: HP-15C LE Error 5 in simple loop
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I was trying to get around the PSE issue by using R/S to stop a simple program. This simple count-down loop produces "Error 5" when you get to 3.0000

001 LBL A

002 1

003 0

004 STO 0

005 LBL B

006 RCL 0

007 R/S

008 DSE 0

009 GSB B

010 RTN

Try GTO B instead of GSB B on line 9. You are filling up the return stack.

- Pauli

Subroutine nested more than 7 deep. 10 - 7 = 3.

My apologies. I should have known that.

That's it indeed.