Microsoft has open-sourced the version of BASIC it created in 1976 for the MOS 6502 processor used in many early microcomputers.
As the software colossus explained in a Wednesday post, Microsoft founders Bill Gates and Paul Allen wrote the company’s first product, BASIC for the Altair 8800 microcomputer and the Intel 8080 processor that powered it, in 1975.
A year later Gates and Ric Weiland, Microsoft’s second employee, ported Microsoft BASIC to the 6502 processor.
In 1977, Commodore Computer licensed it for $25,000 and used Microsoft BASIC in its PET, VIC-20, and Commodore 64 machines. Commodore sold millions of the latter two machines, which helped bring computing to a mass market.
The code Microsoft has released is version 1.1, which apparently contains fixes to the garbage collector identified by Commodore and jointly implemented in 1978 by Commodore engineer John Feagans and Bill Gates. Commodore PET users would know it as BASIC V2.
The release is assembly language source code – 6,955 lines of it – and Microsoft placed it on GitHub, under the MIT License that allows free unrestricted use, and even resale.
In a nice touch, time stamps for commits in the repo record its creation as having taken place “48 years ago”.
The code includes what Microsoft describes as “conditional compilation support for multiple pioneering computer systems,” including the Apple II, Commodore PET, Ohio Scientific, and the MOS Technology KIM-1.
If you get it running, Microsoft advertises the code’s main features as:
- Full BASIC language implementation
- Floating-point arithmetic
- String handling and manipulation
- Array support (both integer and string arrays)
- Mathematical functions and operators
- Input/output operations
You’ll also have the chance to enjoy “Efficient memory utilization for 8-bit systems” plus “String garbage collection” and “Dynamic variable storage.”
The repo includes some notes on Microsoft history, stating that BASIC established the company “as a dominant force in personal computer software before MS-DOS or Windows” and “the licensing of this BASIC interpreter to multiple computer manufacturers was crucial to Microsoft’s early business model.”
That rather glosses over how Microsoft later, ahem, drew inspiration from CP/M when creating MS-DOS, and bullied OEMs with Windows licenses designed to snuff IBM’s OS/2.
But for now let’s celebrate the release of undoubtedly important code, and that this is Microsoft’s second such effort after the 2020 release of source code for GW-BASIC. ®
Source link