Hi There, Could someone help me to write an infinite loop for the HP48SX calculator? Best regards, Tal. email: td@chem.ch.huji.ac.il P.S. Is it possible to do the loop with a label and a goto like the

HP41 or the other HP calculators?



Those loops are easy. I'll show you some examples (humor included.) They take the general form of:

DO ask question about loop UNTIL answered END

This loop executes at least once. It continues to execute as long as the value of "answered" is zero (0). When "answered" is non-zero, the loop stops.

Another loop is:

WHILE confused REPEAT ask question about loop END

As long as "confused" is non-zero, the loop repeats. Should "confued == 0", the loop never executes and the question is not asked.

Your last method uses no test but does continue.

1 MAXR START ask question about loop on hpmuseum.org forum NEXT

This sets up a loop from 1 to infinity. (MAXR is 9.999e499) Since a test is missing, it keeps going.


Possibly Related Threads...
Thread Author Replies Views Last Post
  WP34s integration trapped in infinite loop Bernd Grubert 25 1,638 10-17-2013, 08:50 AM
Last Post: Dieter
  New community-maintained version of "Calculators benchmark: add loop" Pier Aiello 20 1,599 09-12-2013, 02:42 AM
Last Post: Pier Aiello
  Calculator Speed Benchmark (Add Loop) Thomas Chrapkiewicz 2 393 01-20-2013, 11:24 AM
Last Post: Thomas Chrapkiewicz
  HP41 emulator for HP48sx - keyboard overlay needed Doug (NYC) 3 403 12-31-2012, 03:11 PM
Last Post: Allen
  HP48SX seems fully functional won't run SELF TESTS? Bruce Larrabee 5 511 07-16-2012, 11:04 PM
Last Post: Luiz C. Vieira (Brazil)
  HP-IL: Using 82162A Printer and PIL-Box in Same Loop Les Wright 12 865 05-17-2012, 11:58 PM
Last Post: Les Wright
  HP-15C LE -- endless loop in SOLVER Gerson W. Barbosa 9 605 10-27-2011, 02:20 PM
Last Post: Kiyoshi Akima
  HP-15C LE Error 5 in simple loop Eric Zoob 4 357 10-14-2011, 12:05 AM
Last Post: Eric Zoob
  HP-35S hung in "Memory Clear" loop? Scott Newell 2 493 02-18-2011, 12:34 PM
Last Post: Scott Newell
  Running an HP7475A plotter on the HP-IL Loop Richard L. Taylor 3 352 01-14-2011, 02:48 PM
Last Post: Richard L. Taylor

Forum Jump: