REM Statements on the 33S & 35S - 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: REM Statements on the 33S & 35S (/thread-218274.html) |
REM Statements on the 33S & 35S - Matt Agajanian - 04-18-2012 Hello all. It's a very nice HP-41 carryover that you can use Flag 10 and EQN to prompt for input on the 32S-II, 33S and 35S. And, I remember seeing something in the 35S Bug List posted here that using EQN as prompts must be followed with some other commands/functions to avoid an error. If I wanted to notate my programs similar to REM statements in BASIC, what coding structure should I follow for the 32SII, 33S and 35S?
Thanks Edited: 18 Apr 2012, 1:11 a.m.
Re: REM Statements on the 33S & 35S - Dave Britten - 04-18-2012 On the 35S, you could do something like this:
A027 GTO A029 Re: REM Statements on the 33S & 35S - Matt Agajanian - 04-18-2012 Thanks. Although, I seem to remember that in the HP-35s Bug List that talks about using EQN statements outside of creating mathematical expressions cause the 35S to freeze or crash because EQN will register straight text as a syntax problem. Also, I'm not certain but the bug list also talks about EQN as a prompt without a Pause or R/S will cause the 35S to lock up as well. So, is there some step I need to precede this EQN statement with so that what's in the EQN statement isn't treated as a mathematical equation/expression?
Edited: 18 Apr 2012, 12:52 p.m.
Re: REM Statements on the 33S & 35S - Jeff O. - 04-18-2012 Matt,
This thread discusses the problem with using equations as messages or prompts with the 35s.
Re: REM Statements on the 33S & 35S - Matt Agajanian - 04-18-2012 Hi Jeff and the rest of the group. Please forgive my asking. Although yes, that post you referred to does explain the issue very well. Because there is so much being said there, I am very overwhelmed at the back and forth information. And, I am very confused as to what to do with flag 10 and when it should be set/cleared. I am also overwhelmed about what to do with the Pause and R/S instructions and where the EQN statement is supposed to occur. All I want to do us use EQN as a REM statement in BASIC. Yes, I understood the discussion but I am very overwhelmed so please, just, in one simple example, how can I use EQN and the CF 10/SF 10 commands, not as a prompt but as a REM statement similar to how REM is used in BASIC? Edited: 18 Apr 2012, 10:58 p.m.
Re: REM Statements on the 33S & 35S - Bart (UK) - 04-19-2012 Hi,
The combination of Flag 10 and EQN is for diplaying messages to the user during execution. REM statements are not usually displayed during execution (just reminders for the coders when looking at code). To display "MESSAGE", enter the following program:
Actually it is an equation that is being entered. The calculator knows to display it instead of evaluating it by setting flag 10, i.e setting Flag 10 tells the calculator that you wish to display text and not evaluate an equation.
Edited: 19 Apr 2012, 4:52 a.m.
Re: REM Statements on the 33S & 35S - Matt Agajanian - 04-19-2012 AH! I see! Thanks for the clarification. Thanks also for the heads up on Dave's comment.
Edited: 19 Apr 2012, 11:29 a.m.
Re: REM Statements on the 33S & 35S - Matt Agajanian - 04-19-2012 I'll be honest with you. With all the focus on how the EQN function has irregular behaviour, I was severely under the impression that Flag 10 and EQN were joined at the hip. Plus, to structure straight text in an EQN statement and Flag 10's ability to control how the EQN statement operates, I felt as if EQN had to be executed. I also felt that EQN with text in, of and by itself was enough to cause program crashes. It never ocured to me to branch around the EQN step to avoid the !Main! point of EQN actually executing which causes the whole program hanging anomaly. Edited: 19 Apr 2012, 8:55 p.m.
Re: REM Statements on the 33S & 35S - Bart (UK) - 04-21-2012 Just to recap from the thread referenced by Jeff.
Hope this clarifies it a bit, -B Re: REM Statements on the 33S & 35S - Jeff O. - 04-21-2012 Hi Bart, Re: REM Statements on the 33S & 35S - Bart (UK) - 04-22-2012 Hi Jeff, |