Page 1 of 1

basic program in input loop

Posted: Wed Oct 25, 2023 2:28 pm
by ds123
I am using spectaculator emulator and looped my INKEY$ with GOTO and now cannot exit from the program with the BREAK command.

Is there any other way to exit the input and return to the program listing?

Re: basic program in input loop

Posted: Wed Oct 25, 2023 3:08 pm
by PeterJ
@ds123,

Hold down left shift + space bar

Re: basic program in input loop

Posted: Wed Oct 25, 2023 3:56 pm
by ds123
I think because it is waiting for user input that will not work.

Re: basic program in input loop

Posted: Wed Oct 25, 2023 3:59 pm
by PeterJ
ds123 wrote: Wed Oct 25, 2023 3:56 pm I think because it is waiting for user input that will not work.
OK, so you have two double quotes?

If so, delete both double quotes, then enter the keyword STOP (Symbol Shift + A) and hit enter. That will get you back to BASIC

Re: basic program in input loop

Posted: Wed Oct 25, 2023 5:30 pm
by ds123
Thanks, it worked!

Re: basic program in input loop

Posted: Wed Oct 25, 2023 6:55 pm
by 1024MAK
So you used something like:

10 INPUT A$
20 GO TO 10

rather than:

10 LET A$=INKEY$
20 GO TO 10

Mark