Skip to content

WillStevens/basic1K

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1K Tiny BASIC

A 1K Tiny BASIC interpreter for the Intel 8080

It will soon be the 50th birthday of the Intel 8080 microprocessor. This is the device that started the microcomputer revolution. I wrote an emulator for it recently, and decided to write a BASIC interpreter in the spirit of the early microprocessor BASICs that were developed in the late 1970s. In this era, memory was expensive (in 1975 1Kb of RAM cost nearly £1000 in today's money) and hobbyists could often only afford a few KB. I want to understand how small a BASIC interpreter can be.

This implementation is loosely based on Tiny BASIC, but a key difference is that 1K Tiny BASIC is tokenised rather than being parsed at run-time. Whether or not this is a net benefit for code size remains to be seen.

I learned BASIC in the 1980s on the ZX Spectrum and BBC Micro. An appealing feature of the language for beginners is that it builds on concepts that are already familiar to most people - following sequences of numbered steps, and the syntax of mathematical expressions.

About

A 1K Tiny BASIC interpreter for the Intel 8080

Resources

License

Stars

Watchers

Forks

Packages

No packages published