Re: REM Statements on the 33S & 35S Message #10 Posted by Bart (UK) on 19 Apr 2012, 3:26 a.m., in response to message #9 by Matt Agajanian
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).
If you wish to enter a text in a program and display it on the screen when the program runs.
To display "MESSAGE", enter the following program:
M001 LBL M
M002 SF 10
M003 MESSAGE
M004 PSE
M005 CF 10
M006 RTN
the following keystrokes: (RS = Right Shift (blue), LS = Left Shift (orange))
RS PRGM enter program mode
RS LBL M label program M
LS FLAGS 1 .0 set flag 10
EQN RCL M puts letter M
RCL E puts letter E
RCL S puts letter S
RCL S puts letter S
RCL A puts letter A
RCL G puts letter G
RCL E puts letter E
ENTER finishes line M003
RS PSE pause while calculator displays message
LS FLAGS 2 .0 clears flag 10
LS RTN Returns to start
RS PRGM exits program mode
XEQ M ENTER displays "MESSAGE" for 2-3 seconds
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.
To insert text as a traditional REMinder only, do the same as above but do not set Flag 10 (i.e. do not enter lines M002, M004 & M005) and skip over the line as Dave Britten suggested.
Hope this helps, -B
Edited: 19 Apr 2012, 4:52 a.m.
|