HP-15C LE Error 5 in simple loop
#1

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

#2

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

- Pauli

#3

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

#4

My apologies. I should have known that.

#5

That's it indeed.



Possibly Related Threads...
Thread Author Replies Views Last Post
  [HP Prime] "Error while checking exact value with approximate value, returning both!" Chris Pem10 13 1,786 12-06-2013, 05:12 AM
Last Post: parisse
  Simple Tetris. free for you to improve on cyrille de Brébisson 3 666 11-20-2013, 05:43 PM
Last Post: Erwin Ried
  MS advert shows spreadsheet with obvious error BruceH 3 768 11-14-2013, 09:50 AM
Last Post: Bill (Smithville, NJ)
  [HP-Prime] Simple Game (Bugs) CompSystems 1 484 11-01-2013, 10:18 AM
Last Post: Han
  HP Prime: Rounding error in determinant Stephan Matthys 3 591 10-25-2013, 09:29 PM
Last Post: Walter B
  HP Prime Error: Summation Upper Bound > 1000 HP Pioneer 2 507 10-25-2013, 11:32 AM
Last Post: steindid
  Prime Error or Mine? toml_12953 12 1,358 10-22-2013, 10:35 AM
Last Post: toml_12953
  WP34s integration trapped in infinite loop Bernd Grubert 25 2,226 10-17-2013, 08:50 AM
Last Post: Dieter
  Explaination on How to Reset Caculator in Users guie: error Harold A Climer 5 844 10-15-2013, 02:11 AM
Last Post: cyrille de Brébisson
  Repair of HP-34C - Error 0 and Error 9 Jeff Kearns 3 606 10-11-2013, 12:29 PM
Last Post: Randy

Forum Jump: