Apple IIe programming issue

8 posts / 0 new
Last post
Offline
Last seen: 7 years 2 months ago
Joined: Sep 11 2017 - 17:41
Posts: 6
Apple IIe programming issue
AttachmentSize
Image icon 20170911_162659.jpg107.34 KB
Image icon 20170911_162729.jpg104.76 KB
Image icon 20170911_163432.jpg178.87 KB

So I recently acquired an apple IIe and it works great. I've been wanting to learn how to program simple programs and stuff, and was typing in some code from the II+ programming manual. When it came time to input line 60 (60 TOP=10) I did so and continued on. But when I went to run the program, it gave me SYNTAX ERROR ON LINE 60. Needless to say, I was a bit confused because I thought I'd done it right, but I didn't pay much notice and corrected it. So after correcting it, I tried to run it and got the same thing. So of course, I typed in LIST 60 And rather than saying 60 TOP = 10 it had changed to 60 T OP = 10. I was confused, but I corrected it and tried to run it again. And got the same error with the same issue. I tried retyping the entire program 3 times, even condensing the other 2 related lines into one, and it still changed it. Its almost like its autocorrecting it. I didn't even know apple IIs did that. Any ideas?

ggb
Offline
Last seen: 3 hours 30 min ago
Joined: Mar 13 2012 - 05:12
Posts: 55
Re: Apple IIe programming issue

Variables only use 2 character, so the first two characters conflicts with the reserved word "TO" used with the "FOR" statement syntax

Offline
Last seen: 7 years 2 months ago
Joined: Sep 11 2017 - 17:41
Posts: 6
Re: Apple IIe programming issue

Oh. Then why would they put it in the manual, and why doesn't it do it to the second top

Offline
Last seen: 1 year 9 months ago
Joined: May 27 2009 - 01:37
Posts: 1002
Re: Apple IIe programming issue

60 TOP = 10
..is allowable in Integer Basic, but not Applesoft.

Exactly what manual gave that example?

Dog Cow's picture
Offline
Last seen: 5 years 5 months ago
Joined: Dec 11 2008 - 16:26
Posts: 554
Re: Apple IIe programming issue

60 TOP = 10
..is allowable in Integer Basic, but not Applesoft.

Exactly what manual gave that example?

Note the use of CALL -936 instead of HOME. This definitely came from an Integer BASIC manual.

Offline
Last seen: 7 years 2 months ago
Joined: Sep 11 2017 - 17:41
Posts: 6
Re: Apple IIe programming issue

It was the II+ programming manual.did they make any official ones for Applesoft?

Offline
Last seen: 1 year 9 months ago
Joined: May 27 2009 - 01:37
Posts: 1002
Re: Apple IIe programming issue

There are many II+ programming manuals. Is there part number or ISBN number? Or an existing scan? Something that would provide a positive ID.

speedyG's picture
Offline
Last seen: 5 years 6 months ago
Joined: Nov 16 2011 - 07:45
Posts: 2493
Re: Apple IIe programming issue

Hello Tech Heck,

http://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Software/Languages/Applesoft%20BASIC/Manuals/

http://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Computers/Apple%20II/Apple%20IIc/Manuals/

http://beagle.applearchives.com/books/

sincerely
SpeedyG

Log in or register to post comments