HP-15C LE Error 5 in simple loop



#4

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


#5

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

- Pauli


#6

That's it indeed.

#7

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


#8

My apologies. I should have known that.


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

Forum Jump: