BASIC loader

From Wikipedia, the free encyclopedia
Jump to: navigation, search

A BASIC loader is a computer programming technique used with the BASIC programming language to POKE machine language opcodes into RAM. The technique was most prevalent in type-in program listings published for home computers of the 1980s as it allowed the publication of programs that gained the benefits of fast-executing assembly language without requiring the user to own or know how to operate an assembler or machine language monitor program.

The programs most often took the form of a short "stub" loader followed by a (sometimes lengthy) series of DATA statements that contained the core program logic as decimal opcodes. The loader mainly consisted of a For loop that enumerated the DATA statements and POKEd them into memory. Sometimes the DATA statements were in hexadecimal, in which case the loader would contain code to translate from hex to the decimal numbers demanded by the POKE command.