Category:Palo Alto Tiny BASIC
(Redirected from Palo Alto Tiny BASIC)
Palo Alto Tiny BASIC
This programming language may be used to instruct a computer to perform a task.
Listed below are all of the tasks on Rosetta Code which have been solved using Palo Alto Tiny BASIC.
This programming language may be used to instruct a computer to perform a task.
Lang tag(s): | tinybasic |
---|---|
See Also: |
|
Palo Alto Tiny BASIC is an implementation of BASIC.
Other implementations of BASIC.
Palo Alto Tiny BASIC is one of the most popular of the many versions of Tiny BASIC. It was developed in 1975 by Li-Chen Wang.
Features
Palo Alto Tiny BASIC has some features that distinguish it from other Tiny BASICs:
- The
FOR
...NEXT
loop. Like in Microsoft BASIC, the upper and lower bounds of the loop are set on loop entry, and did not change during the loop, so if one of the bounds is based on a variable expression, changing the variable do not change the bound. TheSTEP
modifier is optional. - The ability to place several statements on a single line. Palo Alto Tiny BASIC uses the semicolon
;
to separate statements, rather than the colon:
common in BASICs. - A single numeric one-dimensional array, with the variable name
@
. - The statement
STOP
in addition toEND
. - The use of
#
for not-equals in comparisons, as opposed to<>
. - The ability to set more than one variable in a single
LET
command:The wordLET A=1,B=0,A=A+2
LET
in aLET
command can be omitted. - Lack of
THEN
in anIF
command. - Numeric results of compare operations: 1 (if true), 0 (if false). Thus, one can use them in arithmetic expression. Note: means "set
LET A=B=0
A
to the result of comparingB
with 0". - A prompt in an
INPUT
command. If the prompt is omitted, the default is a name of the variable. E.g.will printINPUT "WHAT IS THE HEIGHT"H
WHAT IS THE HEIGHT:
and wait to read an expression from the input device.will printINPUT H
H:
and so on. - The function
RND(X)
that returns a random number between 1 and X (inclusive). - Separating print items with
,
(comma). - Setting widths of numeric print items. A number preceeded by
#
sets the width (6 by default) of following numeric print items. It does not count leading spaces. For example,
10 PRINT "X",#2,1,10,"X"
20 PRINT 1,#4,10,20,#2,30,40
displays
X 1 10X 1 10 20 30 40
Implementations
Palo Alto Tiny BASIC was adapted for many implementations:
- 3K Control Basic for Cromemco (by Li-Chen Wang)
- Level I BASIC (1977)
- Sharp PC-1211 BASIC (1980)
- Astro BASIC (1982, by Jamie Fenton)
External links
- Wikipedia has a section about Palo Alto Tiny BASIC in the Tiny BASIC entry.
- TINY BASIC, version 1.1 for Intel 8086 version of Palo Alto Tiny BASIC (exe, doc, and assembler source code included). For unclear reasons, it does not allow
S
to be a name of variable. - Tiny BASIC for Curses - a superset of Palo Alto Tiny BASIC, but with little differences in syntax.
- Dr. Wang's Palo Alto Tiny BASIC by Roger Rauskolb (manual in PDF).
Pages in category "Palo Alto Tiny BASIC"
The following 16 pages are in this category, out of 16 total.