![]() |
Loops on 48GX - 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: Loops on 48GX (/thread-72280.html) |
Loops on 48GX - V Green - 04-25-2005 I'm looking for some help re loops within a program. Here's the scenario: A few steps into a program the 48GX performs a long mathematical procedure. Several steps later I want it to perform the same procedure using new numbers by looping back through it. How do I do this? As a simple example: 1, 2, 3, 4, 5 and 6 are stored as a, b, c, d, e and f. How do I get the program to add a,b and c, then add d,e and f using a loop?
Thanks.
Re: Loops on 48GX - Raymond Del Tondo - 04-25-2005 A simple answer would be: Place d,e,f,a,b,c on the stack, and do the following loop:
1 2 START
The code between the START and the NEXT statements
This is a RTFM-type, so for more details
Raymond
Re: Loops on 48GX - V Green - 04-25-2005 Thanks Raymond. I'll try to get hold of a manual.
VG
Re: Loops on 48GX - Raymond Del Tondo - 04-25-2005 Hi,
much valuable information, including manuals,
Raymond
|