ArticleslgStudy

computer science

Amiga Basic

Amiga 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 Amiga Basic rather than just read about it. In short: Amiga Basic is an interpreted implementation of the BASIC programming language for the Amiga. It was designed and written by Microsoft.

Amiga Basic — main illustration
Amiga Basic — illustration

Key takeaways

  • Amiga 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 Amiga Basic to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Amiga Basic from memory before moving on to harder problems.

Reference excerpt

Amiga Basic is an interpreted implementation of the BASIC programming language for the Amiga. It was designed and written by Microsoft. Amiga Basic shipped with AmigaOS versions 1.1 to 1.3. It succeeded MetaComCo's ABasiC included in AmigaOS 1.0 and 1.1 and was superseded by ARexx, a REXX-style scripting language, from AmigaOS version 2.0 onwards.

History and description Amiga Basic provided not only the common BASIC language, but also attempted to provide an easy-to-use API for the Amiga's unique graphics and sound capabilities. OBJECT commands, for example, made it easy to create moving objects – sprites and bobs that could be drawn with an external drawing program, Object editor, that was supplied with AmigaBASIC. An unusual feature of the language is that it theoretically allowed the calling of handwritten assembly language subprograms; however, this feature never worked because of a bug that failed to align the assembly language instructions correctly on a word boundary, as required by the Amiga's native MC68000 processor. Compute!, a popular computer magazine published while Amiga Basic was still being shipped, included many AmigaBASIC type-in programs in their articles. These were typically implementations of simple programs such as rudimentary games, system and file utilities and desk accessories such as analog clocks and address books. Amiga Basic itself was rendered obsolete because of incompatibilities with AmigaOS 2.0 and the hardware successors to the Motorola 68000 CPU. Some incompatibilities were due to the disregard of programming guidelines set forth by Commodore. However, there were a number of third-party compiled BASIC languages released for the Amiga that could compile Amiga Basic programs with minimal changes, like A/C BASIC or Cursor (see below). Some of these compiled BASICs continued to work with AmigaOS 2.0, and as they were compiled rather than interpreted, they generally ran much faster than the original. Although Amiga Basic was superseded by ARexx in AmigaOS 2.0, the two languages had very different functions and capabilities. Hobbyist programmers had changed by the time of AmigaOS 2.0's release and were more likely to be interested in scripting existing third party applications than in writing new programs entirely from scratch. ARexx was seen as better fitting their needs than BASIC. Along with Microsoft's very similar BASIC for the Macintosh (released in 1984) and QuickBASIC for PCs (released on August 18, 1985), Amiga Basic (released in 1985) was one of the new BASIC interpreters from Microsoft to not require line numbers, adopting instead a top-down approach to executing the lines of code, and labels to indicate the GOTO instruction where to jump. However programs that contained line numbers were able to run; the line numbers were simply treated as labels for the purpose of flow control. It was also the first Microsoft interpreted language capable of calling OS functions and dynamic libraries through the command LIBRARY. For example: LIBRARY Graphics.library command invokes the standard Amiga Graphics.library from which to call functions.

Hello World in Amiga Basic

You can go one better by adding the following line:

The Amiga will then say "Hello world" using speech synthesis in addition to displaying it on screen.

References

Notes

External links

Manual COMPUTE!, August 1987, pg 89 Fractal Mountains For Amiga, Source code for a fractal mountain generator. COMPUTE!, October 1987, pg 71 A Button Command, Source code for enhanced buttons, such as radio-style buttons. COMPUTE!, November 1987, pg 86 Masked Input For The Amiga, Source code for a masked text input box. Amiga Coding! Archived December 31, 2010, at the Wayback Machine

Worked examples

Example 1 — a first encounter with Amiga Basic

Start with the simplest possible case. Write down what Amiga 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 Amiga 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 Amiga 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 Amiga Basic

In research
Amiga 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 Amiga 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
Amiga Basic is common in secondary-school and first-year university syllabi. It links to neighbouring topics AmigaOS, Amiga development software, BASIC interpreters, so understanding it makes those chapters shorter.
In everyday life
Look for Amiga 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 “Amiga Basic” →

How to study Amiga Basic in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Amiga 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 Amiga Basic out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Amiga Basic in simple terms?

Amiga Basic is an interpreted implementation of the BASIC programming language for the Amiga. It was designed and written by Microsoft.

Why does Amiga 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 Amiga 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 Amiga Basic.

Tags

  • AmigaOS
  • Amiga development software
  • BASIC interpreters
  • BASIC programming language family
  • Commodore software
  • Discontinued Microsoft BASICs
  • Microsoft programming languages

Keep exploring