HP Forums
HP 48GX Flag Tests - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: HP 48GX Flag Tests (/thread-17054.html)



HP 48GX Flag Tests - MNH - 06-05-2021 02:51 AM

Why FC?C, but no FS?S flag test?


RE: HP 48GX Flag Tests - cahlucas - 06-05-2021 09:12 PM

(06-05-2021 02:51 AM)MNH Wrote:  Why FC?C, but no FS?S flag test?

Because all flags are reset at rest, and therefore have to be reset again after a test. A flag set indicates a certain condition, both with a system flag and a user flag, and a reset flag indicates the absence of that condition. With user flags, you determine the function for a flag, usually in programming. Therefore, there is no point in leaving a flag set if your program ends. Exceptions to this are system flags that you have already set while setting up your calculator. Therefore no FS?S instruction is present.


RE: HP 48GX Flag Tests - MNH - 06-05-2021 11:16 PM

(06-05-2021 09:12 PM)cahlucas Wrote:  Therefore, there is no point in leaving a flag set if your program ends.

Great logic! Thank you!