Apple IIe programming issue

7 replies [Last post]
Offline
Joined: Sep 11 2017
Posts: 6

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?

AttachmentSize
20170911_162659.jpg107.34 KB
20170911_162729.jpg104.76 KB
20170911_163432.jpg178.87 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ggb
Offline
Joined: Mar 13 2012
Posts: 31
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
Joined: Sep 11 2017
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
Joined: May 27 2009
Posts: 937
Re: Apple IIe programming issue

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

Exactly what manual gave that example?

__________________

On a clear disk you can seek forever..

Dog Cow's picture
Offline
Joined: Dec 11 2008
Posts: 465
Re: Apple IIe programming issue

Keatah wrote:

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.

__________________

Email me: dog_cow@m acgui.com
Mac GUI Vault: http://macgui.com/vault/
Apple II Book: http://macgui.com/newa2guide/
Inside Allerton Park book

Offline
Joined: Sep 11 2017
Posts: 6
Re: Apple IIe programming issue

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

Offline
Joined: May 27 2009
Posts: 937
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.

__________________

On a clear disk you can seek forever..

speedyG's picture
Offline
Joined: Nov 16 2011
Posts: 2407
Re: Apple IIe programming issue
__________________

In early days I had a lot of money but no time - now I have no money but a lot of time....
the second part includes less friends but a lot more joy on life....