Copyright © Philip M. Parker, INSEAD. Terms of Use.

TINY BASIC

Specialty Definition: TINY BASIC

DomainDefinition

Computing

Tiny BASIC A dialect of BASIC developed by Dr. Wang [Wong?] in the late 1970s. Tiny BASIC was 2K bytes in size and was loaded from paper tape. It ran on almost any Intel 8080 or Zilog Z80 microprocessor for which the user could provide the necessary I/O driver software. Tiny BASIC was distributed as [the first ever?] freeware. The program listing contained the following phrases "All Wrongs reserved" and "CopyLeft", he obviously wasn't interested in money. See also Tiny Basic Interpreter Language. [More info?] (1997-09-12). Source: The Free On-line Dictionary of Computing.

Source: compiled by the editor from various references; see credits.

Top     

Specialty Definition: Tiny BASIC programming language

(From Wikipedia, the free Encyclopedia)

Tiny BASIC is a dialect of BASIC that can fit into as little as 2 or 3 KB of memory. This small "footprint" made it invaluable in the early days of microcomputers when typical memory size was 4K.

History

The language was first developed solely as a standards document, written primarily by Dennis Allison, a member of the Computer Science faculty at Stanford University. He was urged to create the standard by Bob Albrecht of the Homebrew Computer Club. He had seen BASIC on minicomputers, and felt it would be the perfect match for new machines like the MITS Altair 8800 which had just been released in 1975.

Bob and Dennis published the design document in a newsletter they called the People's Computer Company. In December 1975, Dick Whipple and John Arnold created an interpreter for the language that required only 3K of RAM. Bob and Dennis decided to publish this version in it's own newsletter, which they called Dr. Dobb's Journal of Computer Calisthenics & Orthodontia. In the 1976 issues several versions of Tiny BASIC, including design descriptions and full source code, were published. The magazine exists today as Dr. Dobb's.

Tiny BASIC Grammar

line ::= number statement CR | statement CR

statement ::= PRINT expr-list |
                     IF expression relop expression THEN statement |
                     GOTO expression
                     INPUT var-list
                     LET var = expression
                     GOSUB expression
                     RETURN
                     CLEAR
                     LIST
                     RUN
                     END

expr-list ::= (string | expression) (, (string | expression) * )

var-list ::= var (, var)*

expression ::= (+ | - | epsilon ) term (( + | -) term) *

term ::= factor ( (* | / ) factor) *

factor ::= var | number | (expression)

var ::= A | B | C .... | Y | Z

number ::= digit digit *

digit ::= 0 | 1 | 2 | 3 | ... | 8 | 9

relop ::= < ( > | = | | epsilon ) | > ( < | = | epsilon ) | =

A BREAK from the console will interrupt execution of the program

From Dr. Dobb's Journal of Computer Calisthenics & Orthodontia, Volume 1, Number 1, 1976, p. 9

Implementation

For the implementation a interpretive language (IL) is used. An interpreter written in IL interpretes a line of Tiny Basic code and executes it. The IL is run on an abstract machine, which interpretes IL code. The idea to use an interpretive language goes back to Val Schorre (with META-II, 1964) and Glennie (Syntax Machine). See also virtual machine, CLI.

Interpretive language

The following table gives a partial list of the commands of the interpretive language in which the Tiny Baisc interpreter is written. The length of the whole interpreter program is only 120 of IL operations. Thus the choice of an interpretive approach allowed to economize on memory space and implemenatation effort, though the programs as such were executed somewhat slower. (Source: Dr. Dobb's Journal -Volume 1 Number 1, 1976 p. 12)

TST lbl, 'string' If string matches the BASIC line advance cursor over the matched string and execute the next IL instruction

If the test failes execute the IL instruction at the label lbl

CALL lbl Execute the IL subroutine starting at lbl. Save the IL address following the CALL on the control stack
RTN Return to the IL location specified at the top of the control stack
DONE Report a syntax error if after deleting leading blanks the cursor is not positioned to reach a carriage return.
JUMP lbl Continue execution of the IL at the label specified.
PRS Print characters from the BASIC text up to but not including the closing quotation mark
PRN Print number obtained by popping the top of the expression stack
SPC Insert spaces to move the print head to next zone
NLINE output a CRLF to the printer

External links

Source: adapted by the editor from Wikipedia, the free encyclopedia under a copyleft GNU Free Documentation License (GFDL) from the article "Tiny BASIC programming language."

Top     

Crosswords: TINY BASIC

Specialty definitions using "TINY BASIC": TBIL, Tiny Basic Interpreter Language. (references)

Top     

Expression: TINY BASIC

Expression using "TINY BASIC": tiny Basic Interpreter Language. Additional references.

Source: compiled by the editor from various references; see credits.

Top     

Modern Translation: TINY BASIC

Language Translations for "TINY BASIC"; alternative meanings/domain in parentheses.

Danish

  

Tiny BASIC. (various references)

   

Dutch

  

tiny BASIC. (various references)

   

French

  

BASIC simplifié. (various references)

   

German

  

Tiny BASIC. (various references)

   

Greek 

  

tiny BASIC. (various references)

   

Italian

  

BASIC semplificato. (various references)

   

Pig Latin

  

inytay asicbay

   

Portuguese

  

BASIC simplificado. (various references)

   

Swedish

  

tiny BASIC. (various references)

Source: compiled by the editor from various translation references.

Top     

Anagrams: TINY BASIC

Scrabble® Enable2K-Verified Anagrams

Words within the letters "a-b-c-i-i-n-s-t-y"

-1 letter: basicity.

-3 letters: actins, anisic, antics, binits, cabins, casini, isatin, nastic, sanity, satiny, scanty, tibias.

-4 letters: acini, actin, antic, antis, antsy, ayins, baits, banty, basic, basin, binit, bints, bitsy, cabin, cains, canst, cants, canty, cyans, intis, nabis, nasty, sabin, saint, satin, scant, stain, tains, tansy, tibia.

-5 letters: abys, acts, ains, aits, anis, anti, ants, asci.

 Words containing the letters "a-b-c-i-i-n-s-t-y"
 

+4 letters: antiobscenity, bisectionally, insociability, syllabicating, syllabication, unsociability.

 

+5 letters: compensability, cyberneticians, inscrutability, syllabications, urbanistically.

Source: compiled by the editor from various references; see credits.

SCRABBLE® is a registered trademark. All intellectual property rights in and to the game are owned in the U.S.A and Canada by Hasbro Inc., and throughout the rest of the world by J.W. Spear & Sons Limited of Maidenhead, Berkshire, England, a subsidiary of Mattel Inc. Mattel and Spear are not affiliated with Hasbro.

Top     



INDEX

1. Crosswords
2. Expressions
3. Translations: Modern
4. Anagrams
5. Bibliography


  

Copyright © Philip M. Parker, INSEAD. Terms of Use.