Post Reply 
Casio FC-200 Financial Consultant
03-21-2023, 08:26 AM (This post was last modified: 03-21-2023 08:31 AM by Csaba Tizedes.)
Post: #23
RE: Casio FC-200 Financial Consultant
On my 3650P (which is more limited, but there is no GSB/RTN also), I solved it with the following structure:

Code:

Gto 0:

Lbl 9:
  // Subroutine commands from here
...
If M=8 Then Gto 8:
If M=7 Then Gto 7:
Gto 6

Lbl 0:
  // Main program from here
... 8 Sto M:Gto 9:Lbl 8: ...
...
... 7 Sto M:Gto 9:Lbl 7: ...
...
... 6 Sto M:Gto 9:Lbl 6: ... // 6 or anything else, but not 8 or 7
...

On 3650P it is important to place the subroutine at the beginning of the program (instead of the end), because there is no Stop or End command and the Main program can't stop at the beginning of subprogram.

It is possible to place jump after the subroutine if you place it at the end of the program, but it is consumes one Lbl (which is limited up to 10).

One question/hint: in SD or LR mode the stat registers are accessible for STOre values directly? I mean -10 STO n ?! If it is possible, you can make loops in SD/LR without using other variables (I hope stat modes don't uses the A~Z variables). If you use DATA in these modes, the n is increasing automatically and you can check where it is reached the zero or any value (If n=0 Then end of the loop).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Casio FC-200 Financial Consultant - Gamo - 12-15-2020, 12:07 PM
RE: Casio FC-200 Financial Consultant - Csaba Tizedes - 03-21-2023 08:26 AM



User(s) browsing this thread: 1 Guest(s)