Unknown symbol

This is where most of us started. Classic Spectrum basic.

Moderator: Programming Moderators

dave18
Posts: 186
Joined: Tue May 30, 2017 1:06 am
Location: Bristol, UK

Re: Unknown symbol

Postby dave18 » Thu Aug 27, 2020 11:35 pm

Looks like code to put a message in the lower part of the screen (eg 'Press Y or N to whatever'). You put the message in m$, gosub the routine and it returns with the result in i$. The line numbers are strange for the example but it is basically an early example of a library routine.

Alcoholics Anonymous
Posts: 775
Joined: Mon May 29, 2017 7:00 pm

Re: Unknown symbol

Postby Alcoholics Anonymous » Fri Aug 28, 2020 3:52 am

I really do think it is

print #0; at 0,0; m$

It works fine when I enter it in basic as

print #0; at 0,0;"hello"

dave18
Posts: 186
Joined: Tue May 30, 2017 1:06 am
Location: Bristol, UK

Re: Unknown symbol

Postby dave18 » Fri Aug 28, 2020 7:53 am

@AA
I agree, but it is not a useful program in its own right, it would need to be used like the example below.

10 LET M$="DID YOU BACK KS2?"
20 GOSUB 110
30 IF I$="N" THEN PRINT "WHY ON EARTH NOT!?"
40 STOP
110 Print #0;AT 0,0;m$
120 IF INKEYS$="" THEN GOTO 120
125 LET I$=INKEYS$
130 IF INKEYS$<>"" THEN GOTO 130
135 RETURN

Zxspooks
Posts: 47
Joined: Wed Apr 29, 2020 9:39 pm

Re: Unknown symbol

Postby Zxspooks » Fri Aug 28, 2020 9:48 am

OK, Thank you for your help and input, and to answer the program yes i did back it again for issue 2 model, really loving the spectrum revival and such great community out there.


Who is online

Users browsing this forum: No registered users and 2 guests