Unknown symbol

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

Moderator: Programming Moderators

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

Unknown symbol

Postby Zxspooks » Tue Aug 25, 2020 9:09 pm

Hi, all
Having a new lease of nostalgia using my Spectrum Next KS1, playing some classic games, I found some old 48k basic type in programs, in an old pdf of your Sinclair magazine and thought I'd give programming a go again after 30 odd years lol, but I've come across a possible mistake in the print I'm trying to work out what the symbol before the first '0' in line 15 after the print statement is, any ideas would be appreciated,. Please see picture attached.
Thank you
Mark
Attachments
20200825_220712.jpg
20200825_220712.jpg (830.72 KiB) Viewed 2705 times

User avatar
Protocultor
Posts: 21
Joined: Tue May 30, 2017 12:54 am

Re: Unknown symbol

Postby Protocultor » Tue Aug 25, 2020 9:51 pm

That might be an apostrophe ( ' ), that's SYMBOL SHIFT + 7.

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

Re: Unknown symbol

Postby Alcoholics Anonymous » Wed Aug 26, 2020 4:36 am

I think it's probably # which would mean that prints into the first row of the lower screen (the edit area).

User avatar
Protocultor
Posts: 21
Joined: Tue May 30, 2017 12:54 am

Re: Unknown symbol

Postby Protocultor » Wed Aug 26, 2020 3:40 pm

Alcoholics Anonymous wrote:
Wed Aug 26, 2020 4:36 am
I think it's probably # which would mean that prints into the first row of the lower screen (the edit area).
That makes a lot more sense, since it is followed by an AT 0,0

seedy1812
Posts: 91
Joined: Tue May 30, 2017 11:31 am

Re: Unknown symbol

Postby seedy1812 » Wed Aug 26, 2020 8:14 pm

Wait for next weeks issue which has an errata :O

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

Re: Unknown symbol

Postby Zxspooks » Wed Aug 26, 2020 9:36 pm

Hi, I've tired both but no joy the small program is as follows, only a simple thing but now it is buggin' the hell out of me, in my hay day i would probably had solved it, but a little rusty at basic present, this is the routine I am trying to get to work. (I did something similar years ago in my computer lesson at school back in the day to display the "1982 Sinclair..." line at the bottom of the page so it looked like the computer had just been switched on then after a 10 minute delay it would trigger the good old alpha-com printer to print something funny after we had left the lesson, perhaps I should have kept that bit quite but I was only around 13-14 yrs old and no harm was done LOL!)

Any Ideas??

15 Print _ 0;AT 0,0;m$
20 IF INKEYS$="" THEN GOTO 20
25 LET I$=INKEYS$
30 IF INKEYS$<>"" THEN GOTO 30
35 RETURN

The underscore in line 15 is the missing whatever.

seedy1812
Posts: 91
Joined: Tue May 30, 2017 11:31 am

Re: Unknown symbol

Postby seedy1812 » Thu Aug 27, 2020 12:34 pm

Can you post a link to the scans . It would nice to put a context to the 2 lines you have posted - where does m$ come from etc

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

Re: Unknown symbol

Postby Zxspooks » Thu Aug 27, 2020 7:44 pm

Here is the scan from magazine
Attachments
2.jpg
2.jpg (50.98 KiB) Viewed 2568 times

seedy1812
Posts: 91
Joined: Tue May 30, 2017 11:31 am

Re: Unknown symbol

Postby seedy1812 » Thu Aug 27, 2020 9:18 pm

Wow that's a really short program to type in and run. I guess its part of a bigger program. Just from what you have provided line 15 would error anyway since m$ does not exist.

User avatar
Protocultor
Posts: 21
Joined: Tue May 30, 2017 12:54 am

Re: Unknown symbol

Postby Protocultor » Thu Aug 27, 2020 10:00 pm

seedy1812 wrote:
Thu Aug 27, 2020 9:18 pm
Wow that's a really short program to type in and run. I guess its part of a bigger program. Just from what you have provided line 15 would error anyway since m$ does not exist.
...and in line 35 there's a RETURN without GOSUB, so there's no way this could run on its own. This is definitely part of a bigger program, and if there's nothing else in the magazine, at least a context where this is used, it's a mistake on their part.
The "errata" comment may be completely right.


Who is online

Users browsing this forum: No registered users and 2 guests