ArticleslgStudy

computer science

AmigaDOS

AmigaDOS 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 AmigaDOS rather than just read about it. In short: AmigaDOS is the disk operating system of the AmigaOS, which includes file systems, file and directory manipulation, the command-line interface, and file redirection. In AmigaOS 1.x, AmigaDOS is based on a TRIPOS port by MetaComCo, written in BCPL.

Key takeaways

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

Reference excerpt

AmigaDOS is the disk operating system of the AmigaOS, which includes file systems, file and directory manipulation, the command-line interface, and file redirection. In AmigaOS 1.x, AmigaDOS is based on a TRIPOS port by MetaComCo, written in BCPL. BCPL does not use native pointers, so the more advanced functionality of the operating system was difficult to use and error-prone. The third-party AmigaDOS Resource Project (ARP, formerly the AmigaDOS Replacement Project), a project begun by Amiga developer Charlie Heath, replaced many of the BCPL utilities with smaller, more sophisticated equivalents written in C and assembler, and provided a wrapper library, arp.library. This eliminated the interfacing problems in applications by automatically performing conversions from native pointers (such as those used by C or assembler) to BCPL equivalents and vice versa for all AmigaDOS functions. From AmigaOS 2.x onwards, AmigaDOS was rewritten in C, retaining 1.x compatibility where possible. Starting with AmigaOS 4, AmigaDOS abandoned its legacy with BCPL. Starting from AmigaOS 4.1, AmigaDOS has been extended with 64-bit file-access support.

Console The Amiga console is a standard Amiga virtual device, normally assigned to CON: and driven by console.handler. It was developed from a primitive interface in AmigaOS 1.1, and became stable with versions 1.2 and 1.3, when it started to be known as AmigaShell and its original handler was replaced by newconsole.handler (NEWCON:). The console has various features that were considered up to date when it was created in 1985, like command template help, redirection to null ("NIL:"), and ANSI color terminal. The new console handler – which was implemented in release 1.2 – allows many more features, such as command history, pipelines, and automatic creation of files when output is redirected. When TCP/IP stacks like AmiTCP were released in the early 1990s, the console could also receive redirection from Internet-enabled Amiga device handlers (e.g., TCP:, copy file TO TCP:Site/Port). Unlike other systems originally launched in the mid-1980s, AmigaDOS does not implement a proprietary character set; the developers chose to use the ANSI–ISO standard ISO-8859-1 (Latin 1), which includes the ASCII character set. As in Unix systems, the Amiga console accepts only linefeed ("LF") as an end-of-line ("EOL") character. The Amiga console has support for accented characters as well as for characters created by combinations of 'dead keys' on the keyboard.

Syntax of AmigaDOS commands This is an example of typical AmigaDOS command syntax:

Without entering the directory tree, this shows the content of a directory of a floppy disk and lists subdirectories as well.

The argument "ALL" causes the command to show the entire content of a volume or device, entering and expanding all directory trees. "SYS:" is a default name that is assigned to the boot device, regardless of its physical name.

Command redirection AmigaDOS can redirect the output of a command to files, pipes, a printer, the null device, and other Amiga devices.

Redirects the output of the "dir" command to the speech synthesis handler. The colon character ":" indicates that SPEAK: points to an AmigaDOS device. While a typical use for a device is file systems, special-purpose device names such as this are commonly used in the system.

Command template AmigaDOS commands are expected to provide a standard "template" that describes the arguments they can accept. This can be used as a basic "help" feature for commands, although third-party replacement console handlers and shells, such as Bash or Zshell (ported from Unix), or KingCON often provide more verbose help for built-in commands. On requesting the template for the command "Copy", the following output is obtained:

This string means that the user must use this command in conjunction with FROM and TO arguments, where the latter is compulsory (/A). The argument keywords ALL and QUIET are switches (/S) and change the results of the command Copy (ALL causes all files in a directory to be copied, while QUIET will cause the command to generate no output). By reading this template, a user can know that the following syntax is acceptable for the command:

Breaking commands and pausing console output A user can terminate a program by invoking the key combination Ctrl+C or Ctrl+D. Pressing space or any printing character on the keyboard suspends the console output. Output may be resumed by pressing the ← Backspace key (to delete all of the input) or by pressing ↵ Enter (which will cause the input to be processed as a command as soon as the current command stops running).

Wildcard characters Like other operating systems, AmigaDOS also provides wildcard characters that are substitutes for any character or any sequence of random characters in a string. Here is an example of wildcard characters in AmigaDOS commands:

searches the current directory for any file containing ".info" at its end as suffix, and displays only these files in the output. The parsing of this is as follows. The "?" wildcard indicates "any character". Prefixing this with a "#" indicates "any number of repetitions". This can be viewed as analogous to the regular expression ".*".

Filename characters AmigaDOS uses '/' as a directory separator and ':' as a root reference, so filenames look like: SYS:subdir/anotherdir/filename.info. :objectname is an object in the root directory, a leading '/' refers to the parent directory so //mary is equivalent to the Unix path ../../mary.

Scripting AmigaDOS also has the feature of dealing with batch programming, which it calls "script" programming, and has a number of commands such as Echo, If, Then, EndIf, Val, and Skip to deal with structured script programming. Scripts are text-based files and can be created with AmigaDOS's internal text editor program, called Ed (unrelated to Unix's Ed), or with any other third-party text editor. To invoke a script program, AmigaDOS uses the command Execute.

This executes the script called "myscript". This method of executing scripts keeps the console window busy until the script has finished its scheduled job. Users cannot interact with the console window until the script ends or until they interrupt it. While:

The AmigaDOS command Run launches any DOS command or any kind of program in the background and immediately returns to the console prompt for further input.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with AmigaDOS

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

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

How to study AmigaDOS in 20 minutes

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

Frequently asked questions

What is AmigaDOS in simple terms?

AmigaDOS is the disk operating system of the AmigaOS, which includes file systems, file and directory manipulation, the command-line interface, and file redirection. In AmigaOS 1.x, AmigaDOS is based on a TRIPOS port by MetaComCo, written in BCPL.

Why does AmigaDOS 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 AmigaDOS?

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 AmigaDOS.

Tags

  • 1985 software
  • AmigaOS
  • Disk operating systems
  • MorphOS

Keep exploring