Post Reply 
Interesting Sharp PC-1500 behavior
02-07-2023, 06:12 PM (This post was last modified: 02-07-2023 06:17 PM by robve.)
Post: #2
RE: Interesting Sharp PC-1500 behavior
(02-07-2023 04:42 PM)Jeff_Birt Wrote:  10 PRINT "LINE 10"
20 PRINT "LINE 20"
30 END
RUN it, and when "LINE 10" is displayed type "PRINT 5+5" (no quotes) and hit ENTER. Then hit ENTER again.

What happens? Does it surprise you?

This is normal and expected:

RUN<ENTER>
LINE 10
PRINT 5+5<ENTER>
10
<ENTER>
LINE 20


The reason is that WAIT is enabled by default and PRINT waits for you to press <ENTER>. But you can enter expressions instead, to see what values the variables have, which is great for debugging. Then press <ENTER> to continue the program. Press <UP> and hold to see the BASIC line executing. Pretty much all SHARP PC work this way. Use WAIT 0 in your program to remove the WAIT state.

Press <CA> (<SHIFT> <CL>) to reset the state back to "normal" RUN MODE. This is why <CA> does a little bit more than <CL>.

- Rob

"I count on old friends" -- HP 71B,Prime|Ti VOY200,Nspire CXII CAS|Casio fx-CG50...|Sharp PC-G850,E500,2500,1500,14xx,13xx,12xx...
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Interesting Sharp PC-1500 behavior - robve - 02-07-2023 06:12 PM



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