NAR 1

From Wikipedia, the free encyclopedia

NAR 1 or just NAR (Serbian Nastavni Računar, en. Educational Computer) was a theoretical model of a computer created by Faculty of Mathematics of University of Belgrade professor Nedeljko Parezanović. It was used for Assembly language and Computer architecture courses.

NAR 1 processor has a 5-bit address bus (32 bytes of addressable memory) and 8-bit data bus. Machine instructions were single-byte with three most significant bits specifying the opcode and 6 least significant bits the parameter - memory address. A single 8-bit accumulator register was available and there were no flags or flag registers. Only absolute addressing mode was available and all others were achieved by self-modifying code. Following opcodes were available:

  • MUA (sr. Memorija U Akumulator, en. Memory Into Accumulator) loads the content of memory location specified by the address parameter into the accumulator
  • AUM (sr. Akumulator U Memoriju, en. Accumulator Into Memory) stores the content of the accumulator into memory location specified by the address parameter
  • SAB (sr. Saberi, en. Add) loads the content of memory location specified by the address parameter, adds it to the current value of the accumulator and stores the result into the accumulator
  • ODU (sr. Oduzmi, en. Subtract) loads the content of memory location specified by the address parameter, subtracts it from the current value of the accumulator and stores the result into the accumulator
  • NES (sr. Negativni Skok, en. Negative Jump) performs a conditional jump to the address specified by the parameter if the current value of the accumulator is negative
  • ZAR (sr. Zaustavi Računar, en. Stop the Computer) stops any further processing; this is the only instruction that ignores the parameter.

Two more instructions were optional (ie. their functioanlity can be achieved otherwise):

  • BES (sr. Bezuslovni Skok, en. Unconditional Jump) performs an unconditional jump to the address specified by the parameter
  • NUS (sr. Nula-Skok, en. Zero Jump) performs a conditional jump to the address specified by the parameter if the current value of the accumulator is zero

[edit] Trivia

  • Word "nar" means Pomegranate in Serbian language
  • Many NAR 1 simulators were created. One was named "Šljiva" (en. plum) as that fruit grows in Serbia, while "nar" does not.
  • One of frequently given taks was to create a program that adds as many numbers as possible, having those numbers stored in 32-byte memory along with the program. The record was 18 bytes.

[edit] See also


Computer systems from Serbia

1980‑2000:

TIM-100 | TIM-001 | TIM-600 | TIM-011 | TIM-40M | ATLAS-TIM AT 32 | Galaksija | Galaksija Plus | Pecom 32 | Pecom 64 | Lira XT | Lola 8 | PA512 | LPA512

1960‑1979:

CER Computers (CER-10, CER-2, CER-20, CER-200, CER-202, CER-22, CER-12, CER-203) | HRS-100

Theoretical:

NAR 1 | NAR 2

See also:

Full lists from Serbia | former Yugoslavia | World and history of computing in: Serbia | former Yugoslavia | (former) communist countries | World

In other languages