The Museum of HP Calculators

HP Forum Archive 20

[ Return to Index | Top of Index ]

HP-15C LE Error 5 in simple loop
Message #1 Posted by Eric Zoob on 13 Oct 2011, 11:30 p.m.

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
Message #2 Posted by Paul Dale on 13 Oct 2011, 11:33 p.m.,
in response to message #1 by Eric Zoob

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
Message #3 Posted by Jan on 14 Oct 2011, 7:51 a.m.,
in response to message #2 by Paul Dale

That's it indeed.

      
Re: HP-15C LE Error 5 in simple loop
Message #4 Posted by Michael de Estrada on 13 Oct 2011, 11:38 p.m.,
in response to message #1 by Eric Zoob

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

            
Re: HP-15C LE Error 5 in simple loop
Message #5 Posted by Eric Zoob on 14 Oct 2011, 12:05 a.m.,
in response to message #4 by Michael de Estrada

My apologies. I should have known that.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall