HP Forums
HP-15C LE Error 5 in simple loop - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: HP-15C LE Error 5 in simple loop (/thread-201108.html)



HP-15C LE Error 5 in simple loop - Eric Zoob - 10-13-2011

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




Re: HP-15C LE Error 5 in simple loop - Paul Dale - 10-13-2011

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

- Pauli


Re: HP-15C LE Error 5 in simple loop - Michael de Estrada - 10-13-2011

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


Re: HP-15C LE Error 5 in simple loop - Eric Zoob - 10-14-2011

My apologies. I should have known that.


Re: HP-15C LE Error 5 in simple loop - Jan - 10-14-2011

That's it indeed.