Lably
Skip to content

Commodore BASIC

BASIC programming language dialect

  • 22 min read
  • 7 chapters

Related on Lably

Through BASIC, Structured programming and Computer keyboard

The core is based on 6502 Microsoft BASIC, and as such it shares many characteristics with other 6502 BASICs of the time, such as Applesoft BASIC. Commodore licensed BASIC from Microsoft in 1977 on a "pay once, no royalties" basis after Jack Tramiel turned down Bill Gates' offer of a $3 per unit fee, stating, "I'm already married," and would pay no more than $25,000 for a perpetual license.

The original PET version was very similar to the original Microsoft implementation with few modifications. BASIC 2.0 on the C64 was also similar, and was also seen on C128s (in C64 mode) and other models. Later PETs featured BASIC 4.0, similar to the original but adding a number of commands for working with floppy disks.

BASIC 3.5 was the first to really deviate, adding a number of commands for graphics and sound support as well as a mini-assembler integrated into the machine language monitor on the C16 and Plus/4. BASIC 7.0 was included with the Commodore 128, and included structured programming commands from the Plus/4's BASIC 3.5, as well as a sprite editor and keywords designed specifically to take advantage of the machine's new capabilities. The last, BASIC 10.0, was part of the unreleased Commodore 65.

History

Commodore took the source code of the flat-fee BASIC and further developed it internally for all their other 8-bit home computers. It was not until the Commodore 128 (with V7.0) that a Microsoft copyright notice was displayed. However, Microsoft had built an easter egg into their software to prove its provenance: the command WAIT 6502,1 on a PET with the version 2 or "upgrade" BASIC will show MICROSOFT! at the top of the screen. (The easter egg was well-obfuscated—the message did not show up in any disassembly of the interpreter.)

The popular Commodore 64 came with BASIC v2.0 in ROM even though the computer was released after the PET/CBM series that had version 4.0 because the 64 was intended as a home computer, while the PET/CBM series were targeted at business and educational use where their built-in programming language was presumed to be more heavily used. This saved manufacturing costs, as the V2 fit into smaller ROMs.

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Computing and communication