HP Forums
(41) JETLOG Program - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP-41C Software Library (/forum-11.html)
+--- Thread: (41) JETLOG Program (/thread-16055.html)

Pages: 1 2


RE: (41) JETLOG Program - WrongWay - 02-25-2022 04:33 PM

(02-25-2022 10:14 AM)Ángel Martin Wrote:  
(02-20-2022 12:15 AM)WrongWay Wrote:  Yes, this should be GTO "C"

I wouldn't think so, that would mean that the following two program steps are never executed:

SF 03
GTO "C"
FS? 00
GTO 01

LBL 00
...

It's probably more likely to be this, changing SF 03 with FS? 03:

FS? 03
GTO C
FS? 00
GTO 01
LBL 00
...

right?

Looking at the listing right now on my 41CV
Code:

11 X=0?
12 GTO 00
13 SF 03
14 GTO C
15 FS? 00
16 GTO 01

It could be a typo but im not sure how changing it would affect the program. and looking more into the code, Flag 3 is set but never checked, there is never a FS? 03 instruction


RE: (41) JETLOG Program - Ángel Martin - 02-26-2022 08:56 AM

(02-25-2022 04:33 PM)WrongWay Wrote:  
(02-25-2022 10:14 AM)Ángel Martin Wrote:  I wouldn't think so, that would mean that the following two program steps are never executed:

SF 03
GTO "C"
FS? 00
GTO 01

LBL 00
...

It's probably more likely to be this, changing SF 03 with FS? 03:

FS? 03
GTO C
FS? 00
GTO 01
LBL 00
...

right?


Looking at the listing right now on my 41CV
Code:

11 X=0?
12 GTO 00
13 SF 03
14 GTO C
15 FS? 00
16 GTO 01

It could be a typo but im not sure how changing it would affect the program. and looking more into the code, Flag 3 is set but never checked, there is never a FS? 03 instruction


So do you see how lines 15 and 16 in your code are never executed, right?
Maybe F03 was meant to be set by the user before running the program, to denote cruising flight condition.... but I guess we'll never really know.


RE: (41) JETLOG Program - WrongWay - 02-26-2022 08:04 PM

(02-26-2022 08:56 AM)Ángel Martin Wrote:  So do you see how lines 15 and 16 in your code are never executed, right?
Maybe F03 was meant to be set by the user before running the program, to denote cruising flight condition.... but I guess we'll never really know.

Oh I totally agree and it maybe worth a test to see the results if flag 3 is set prior to execution.