ArticleslgStudy

computer science

Level I BASIC

Level I BASIC is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Level I BASIC rather than just read about it. In short: Level I BASIC is a dialect of the BASIC programming language that shipped with the first TRS-80, the TRS-80 Model I. Background Tandy employee Steve Leininger wrote the first draft of the NIBL (National Industrial Basic Language) BASIC interpreter for the SC/MP while employed at National Semiconductor .

Key takeaways

  • Level I BASIC belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Level I BASIC to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Level I BASIC from memory before moving on to harder problems.

Reference excerpt

Level I BASIC is a dialect of the BASIC programming language that shipped with the first TRS-80, the TRS-80 Model I.

Background Tandy employee Steve Leininger wrote the first draft of the NIBL (National Industrial Basic Language) BASIC interpreter for the SC/MP while employed at National Semiconductor . Unable to take that source code with him, he initially hired a consultant to write an interpreter. When the consultant failed to deliver, Leininger, Don French, and BASIC manual author David A. Lien adapted Li-Chen Wang's public domain version of Tiny BASIC for the prototype TRS-80 Model I. Leininger said, "we went back through the Wang Basic and completely tore out about 60 per cent of it, the integer overhead and all that kind of stuff". The result required only 2 KB of memory for the interpreter, leaving an average of another 2 KB free for user programs in common 4 KB memory layouts of early machines. During a demonstration to executives, Tandy Corporation President Charles Tandy tried to enter his salary but was unable to do so, because Tiny BASIC uses 2-byte signed integers with a maximum value of 32,767. The result was a request for floating-point math for the production version. This led to the replacement of the existing 16-bit integer code with a version using 32-bit single-precision floating-point numbers. Leininger further extended the language to support input/output routines (keyboard, CRT, and reading and writing from cassettes). The language fits within 4 KB of ROM.

Further development When the TRS-80 was introduced, three versions of BASIC were announced:

Level I BASIC Level II BASIC - developed by Microsoft and using 12 KB of ROM to add string handling, error handling, trigonometric and other dedicated functions Level III BASIC - also developed by Microsoft, offering disk commands The Level I language was not available for the TRS-80 Model II but briefly re-surfaced as the baseline package for the TRS-80 Model III in 1981, selling for $699 compared to the $999 system with Model III BASIC (another Microsoft product). The language was identical to the Model I version but with the addition of two commands, the LLIST and the LPRINT, to output to a printer.

Language features Level I BASIC supports the following keywords:

Commands: NEW, RUN, LIST, CLOAD, CSAVE, CONT (to continue or resume a program from a breakpoint) Statements: PRINT, INPUT, READ, DATA, RESTORE, LET, REM Print modifiers: AT, TAB Structure: GOTO, GOSUB, ON-GOTO, ON-GOSUB, RETURN, IF-THEN (but no ELSE), FOR-TO-STEP, NEXT, STOP, END Graphics: CLS, SET, RESET, POINT() Functions: ABS(), INT(), RND(), MEM Math: + - * / Relational operators: < > = <= => <> Logical operators: * (AND) + (OR) Like Palo Alto Tiny BASIC on which it was based, Level I BASIC does not tokenize keywords like Microsoft BASIC but uses abbreviations to reduce the amount of memory used by keywords, such as F. for FOR, G. for GOTO, P. for PRINT, and T. for THEN. The language supports 26 single-precision variables A to Z, two strings A$ and B$ (limited to 16 characters each), and one pre-defined array A(). The language lacks a DIM statement for dimensioning the array, the size of which is determined by available memory not used by the program listing (4 bytes per item). As the language lacks many common math functions, the manual provides subroutine listings for square root, exponentiation, exponentials, logarithms, arithmetic sign, and trigonometry functions. Graphics support is minimal: CLS, for CLear Screen; SET(X,Y), which lights a location on the display; RESET(X,Y), which turns it off; and POINT(X,Y), which returns 1 if a location was lit, 0 if it was not. The coordinates can be any expression and ranges from 0 to 127 for the X-axis and 0 to 47 for the Y-axis. Only black-and-white display is supported.

References

External links TRS-80 Level I BASIC Simulator Conklin Systems - He Changed Our World - tribute to the Level I BASIC user manual's personification of the computer

Worked examples

Example 1 — a first encounter with Level I BASIC

Start with the simplest possible case. Write down what Level I BASIC claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Level I BASIC before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Level I BASIC ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Level I BASIC

In research
Level I BASIC appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Level I BASIC in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Level I BASIC is common in secondary-school and first-year university syllabi. It links to neighbouring topics BASIC interpreters, BASIC programming language family, Microcomputer software, so understanding it makes those chapters shorter.
In everyday life
Look for Level I BASIC outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Level I BASIC” →

How to study Level I BASIC in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Level I BASIC means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Level I BASIC out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Level I BASIC in simple terms?

Level I BASIC is a dialect of the BASIC programming language that shipped with the first TRS-80, the TRS-80 Model I. Background Tandy employee Steve Leininger wrote the first draft of the NIBL (National Industrial Basic Language) BASIC interpreter for the SC/MP while employed at National Semiconduc…

Why does Level I BASIC matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Level I BASIC?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Level I BASIC.

Tags

  • BASIC interpreters
  • BASIC programming language family
  • Microcomputer software

Keep exploring