ArticleslgStudy

computer science

Norsk Data Assembler

Norsk Data Assembler 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 Norsk Data Assembler rather than just read about it. In short: MAC was a Macro assembler for computers of the NORD-1, NORD-10, and ND-100 lines from Norsk Data. Limitations The assembler had several snags which today would be considered exotic or strange.

Key takeaways

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

Reference excerpt

MAC was a Macro assembler for computers of the NORD-1, NORD-10, and ND-100 lines from Norsk Data.

Limitations

The assembler had several snags which today would be considered exotic or strange.

Identifier length Like many assemblers MAC placed a limit on the length of variable names, however, rather than simply disallowing names greater than the maximum length it only kept the last five letters of an identifier, ignoring the first part of the name. The reason for keeping the last 5 was so that variables such as MY_ARRAY1 and MY_ARRAY2 would be distinguishable. The result was that the internal storage of some names was very strange and some times hard to understand as the names would be identical to names such as RRAY1 and RRAY2 respectively. This behavior caused some programmers to adopt the practice of writing only the last five letters of a name in their program code as the assembler would ignore the rest anyway. Because of the difficulty faced by a human reader in understanding what was meant by the name, the code became much more difficult to understand. This resulted in less code reuse on the system.

Translation to machine code Another peculiarity was that the assembler worked by adding together the "values" of all the symbols in an instruction to form the actual machine code. For example to copy the contents of the X register to the A register you would write:

COPY SX DA

Internally the assembler had a numerical value for "COPY", another value for "SX", and a third value for "DA". Adding them together yielded the actual machine instruction. However, if the programmer made a mistake and typed in (notice that both registers are "source" registers):

COPY SX SA

the machine would not do what was really intended by the programmer, nor would it throw an error. Instead the assembler would accept the program but it would not be translated into a COPY instruction. The SX + SA part would most likely result in either the value of some third register or would overflow so that the operation part of the instruction was modified changing it from copy to some other unintended operation.

Standard call library Another issue for assembler programmers in general is the list of so-called monitor (MON) calls. The MON instruction is equivalent to the INT instruction found in Intel CPUs. However, while they originally had a nice set of functions to write to a file, read from a file, etc.; it quickly devolved into an ad hoc set of functions. An example being a function originally designed to output 8 bytes stored in 4 of the registers (A, D, T and X). Soon someone, having the bytes in some other registers, made a new function to output from those registers. This left the programmer with a veritable forest of output functions all doing almost the same thing. In the latter days of SINTRAN the problem then was to find available codes for these system calls as all 256 of them had already been taken by several such near identical functions. Thus, the extended multi-function monitor calls entered the scene where one monitor call could do a number of functions with a function code specified in a register designating which of its subroutines would be executed.

References

Worked examples

Example 1 — a first encounter with Norsk Data Assembler

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

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

How to study Norsk Data Assembler in 20 minutes

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

Frequently asked questions

What is Norsk Data Assembler in simple terms?

MAC was a Macro assembler for computers of the NORD-1, NORD-10, and ND-100 lines from Norsk Data. Limitations The assembler had several snags which today would be considered exotic or strange.

Why does Norsk Data Assembler 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 Norsk Data Assembler?

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 Norsk Data Assembler.

Tags

  • Assemblers
  • Norsk Data software

Keep exploring