Opentopia Directory Encyclopedia Tools

Applesoft BASIC

Encyclopedia : A : AP : APP : Applesoft BASIC



 

Applesoft BASIC was the second dialect of BASIC supplied on the Apple II computer, superseding Integer BASIC. Applesoft BASIC was supplied by Microsoft; Apple was looking for a version of BASIC for the Apple II computer that supported the much-demanded floating point calculations, and Steve Wozniak, the creator of Integer BASIC and the only person who understood it well enough to add floating point routines was busy with the (also much-demanded) Disk II drive and controller and with Apple DOS; so an external supplier of BASIC was direly needed. After their success with Altair BASIC, Microsoft had become the BASIC vendor of choice. Apple licensed a 10 KB assembly language version of BASIC called "Applesoft." It was similar to (and indeed shared a common code base with) BASIC implementations on other 6502-based computers, such as Commodore BASIC: it used line numbers, spaces were not necessary in lines. While it was much slower than Integer BASIC, it had some killer features that the older BASIC lacked:

Relatively few action games were written in Applesoft BASIC, for several reasons:

Here's Hello World in Applesoft BASIC:

10 TEXT:HOME
20 ?"HELLO WORLD"
Multiple commands could be included on the same line of code if separated by a colon (:). The ? can be used in Applesoft BASIC as a shortcut for "PRINT", though spelling out the word is not only acceptable but canonical -- Applesoft converted "?" in entered programs to "PRINT" and the question mark would be "expanded" when entered program lines were listed back out. So the program above would actually appear in a LIST command as shown below:

10  TEXT : HOME
20  PRINT "HELLO WORLD"
This article includes text from [Everything2], licensed under GFDL.

Trivia

See also

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.


Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: