Help


[permalink] [id link]
+
Page "Applesoft BASIC" ¶ 0
from Wikipedia
Edit
Promote Demote Fragment Fix

Some Related Sentences

Applesoft and BASIC
Applesoft BASIC was supplied by Microsoft and its name is derived from the names of both Apple and Microsoft.
As Steve Wozniak, the creator of Integer BASIC and the only person who understood it well enough to add floating point features, was busy with the Disk II drive and controller and with Apple DOS, Apple turned to Microsoft, who was the BASIC vendor of choice after their success with Altair BASIC, and licensed a 10 KB assembly language version of BASIC dubbed " Applesoft.
" Apple reportedly obtained an eight-year license for Applesoft BASIC from Microsoft for a flat fee of $ 21, 000, renewing it in 1985 through an arrangement that gave Microsoft the rights and source code for Apple's Macintosh version of BASIC.
Applesoft was similar to ( and indeed had a common code base with ) Microsoft BASIC implementations on other 6502-based computers, such as Commodore BASIC: it used line numbers, and spaces were not necessary in lines.
While Applesoft was slower than Integer BASIC, it had many features that the older BASIC lacked:
Conversely, Applesoft lacked the ( remainder ) operator that had been present in Integer BASIC.
Whereas Wozniak originally referred to his Integer BASIC as " Game BASIC ," having written it so he could write a Breakout clone for his new computer, few action games were written in Applesoft BASIC for several reasons:
Hello World in Applesoft BASIC could be entered as the following:
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 "?
Donn Denman ported Applesoft BASIC to SOS and reworked it to take advantage of the extended memory of the Apple ///.
* Despite its heritage, Applesoft lacked commands common to most other Microsoft BASIC interpreters, such as INSTR ( which searched for a substring in a given string ; this had to be done manually with loops and the MID $ function ), PRINT USING ( which formatted numbers with commas and currency signs according to a format string ), and INKEY $ ( which checked for a keypress without stopping the program as Applesoft's GET command — analogous to the INPUT $ function — did, although a PEEK location did provide this functionality ).
* There was a well-documented bug in Applesoft BASIC that could actually crash the interpreter if ONERR GOTO was in effect and numerous program errors occurred.
* Both Integer BASIC and Applesoft used tokenizing to reduce the memory requirements of programs and to speed their interpretation.
Integer BASIC used characters with codes above 127 for normal text and codes below 128 for tokens ; Applesoft used exactly the reverse.

Applesoft and was
The first version of Applesoft was released in 1977 only on cassette tape and lacked proper support for high-resolution graphics.
Applesoft II, which was made available on cassette and disk and in the ROM of the Apple II Plus and subsequent models, was released in 1978.
Applesoft converted integer numbers to real before performing operations on them, converting the result back to an integer only if it was to be assigned to a ( 16-bit signed ) integer variable.
* The program was stored as a linked list of lines ; a or took O ( n ) ( linear ) time, and although Applesoft programs were not very long compared to today's software, on a 1 MHz 6502 this could be a significant bottleneck.
Microsoft's CLS command ( for clearing the screen ) was renamed HOME in Applesoft.
Later it was discovered by an enterprising hacker that the required code was actually in the Applesoft ROM ( though it was never executed ) and could be called there instead: CALL-3288 or ( equivalent ) 62248.
His experiences testing Applesoft BASIC inspired him to design a competing product, called Notzo BASIC, which was never implemented.
The original Math Blaster was written in Applesoft Basic and the Microsoft equivalent.
Apple Computer licensed a more full-featured ( but also much slower ) BASIC from Microsoft soon after the Apple II was released in 1977, introduced some tweaks, named it Applesoft BASIC, and included the second version of it in the ROMs of the Apple II Plus, which was released in.
Applesoft BASIC was included in the ROMs of all Apple II models from the Apple II Plus forward, and eventually became the platform for far more programs than Integer BASIC.
When running Apple DOS, it was possible ( at the expense of clearing the current BASIC program from memory ) to switch between Applesoft BASIC and Integer BASIC by typing either INT ( to enter Integer BASIC ) or FP ( to enter Applesoft BASIC )— provided, of course, that the requested language was either in ROM or loaded into RAM.

Applesoft and dialect
Likewise, Apple had failed to secure an exclusive distribution license for the Applesoft dialect of BASIC, and VTech was free to buy it.

Applesoft and Microsoft
The core was based on 6502 Microsoft BASIC, and as such it shares most of the core code with other 6502 BASICs of the time, such as Applesoft BASIC.
VTech owed much of this compatibility to the fact that they were able to license Applesoft BASIC ( which constitutes the largest and most complex part of an Apple II's ROM contents ) from Microsoft just as Apple did, heavily reducing the amount of code that had to be reimplemented.

Applesoft and with
* Applesoft, like Integer BASIC before it, did not come with any built-in commands for dealing with files or disks, other than a feature to save programs to, and load programs from, audiotape.
Atari felt that they needed to expand the language to add better support for the specific hardware features of their computers, similar to what Apple had done with their Applesoft BASIC.
Like the Apple II +, IIe, and IIc, the IIGS also included Applesoft BASIC and a monitor ( which could be used for very simple assembly language programming ) in ROM, so they could be used even with no operating system loaded from disk.
The new ROM firmware allowed Applesoft BASIC to recognize lowercase characters and work better with an 80-column display, and fixed several bugs from the IIe ROM.
Shape tables were available from the BASIC interpreter in Applesoft BASIC and from machine code in the " Programmer's Aid " package that was bundled with the original Integer BASIC ROMs for that computer.
( The problematic ROUND function does not appear in Applesoft II, the version that most Apple II users are familiar with.

Applesoft and Apple
It is this latter version, which has some syntax differences from the first as well as support for the Apple II high-resolution graphics modes, that most people mean by the term " Applesoft.
* Applesoft BASIC ( Apple II family )
Instead of the original Integer BASIC, the Apple II Plus firmware included the newer Applesoft II floating point BASIC.
The ROM revision for a specific Apple IIc is determined by entering the Applesoft BASIC programming language and typing in the command PRINT PEEK ( 64447 ) which returns the value indicating the particular ROM version.
These two features, some cassette tape I / O routines, and a few seldom-used floating point math routines ( which existed in the Integer BASIC ROMs but weren't integrated into the BASIC language ) were removed in the transition from the Integer BASIC ROMs to the Apple II Plus ROMs, in order to accommodate the larger size of the Applesoft BASIC interpreter.
* In Applesoft BASIC, integer arithmetic was implemented on top of floating-point arithmetic, and there were no bitwise operators and no support for blitting of raster graphics ( even though the language supported vector graphics on the Apple II's raster hardware ).
It was developed for the Apple II and DOS as an example game to accompany his article about his GraBASIC, an Applesoft BASIC add-on, for the UpTime disk magazine.

0.470 seconds.