Jump to content

BASIC loader

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by R'n'B (talk | contribs) at 12:19, 6 January 2013 (Fix links to disambiguation page Assembler). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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.