Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Applesoft BASIC
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Performance=== Wozniak originally referred to his Integer BASIC as "Game BASIC" (having written it so he could implement a [[Breakout clone|''Breakout'' clone]] for his new computer).<ref name="wozniak20140501" /> Few [[action game]]s were written in Applesoft BASIC, in large part because the use of floating-point numbers for all math operations degrades performance. Applesoft BASIC programs are stored as a [[linked list]] of lines; a <code>GOTO</code> or <code>GOSUB</code> takes [[Computational complexity theory|linear time]]. Some programs have the subroutines at the top to reduce the time for calling them. Unlike Integer BASIC, Applesoft does not convert literal numbers (like 100) in the source code to binary when a line is entered. Rather, the ASCII string is converted whenever the line is executed. Since variable lookup is often faster than this conversion, it can be faster to store numeric constants used inside loops in variables before the loop is entered.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)