<s>
NAR	B-Application
1	I-Application
or	O
just	O
NAR	O
(	O
Serbian	O
Nastavni	O
Računar	O
,	O
en	O
.	O
</s>
<s>
It	O
was	O
used	O
for	O
Assembly	B-Language
language	I-Language
and	O
Computer	B-General_Concept
architecture	I-General_Concept
courses	O
.	O
</s>
<s>
NAR	B-Application
1	I-Application
processor	B-General_Concept
has	O
a	O
5-bit	O
address	B-Architecture
bus	I-Architecture
(	O
32	O
bytes	B-Application
of	O
addressable	O
memory	O
)	O
and	O
8-bit	O
data	B-General_Concept
bus	I-General_Concept
.	O
</s>
<s>
Machine	B-Language
instructions	I-Language
were	O
single-byte	O
with	O
three	O
most	O
significant	O
bits	O
specifying	O
the	O
opcode	B-Language
and	O
5	O
least	O
significant	O
bits	O
the	O
parameter	O
-	O
memory	B-General_Concept
address	I-General_Concept
.	O
</s>
<s>
A	O
single	O
8-bit	O
accumulator	B-General_Concept
register	I-General_Concept
was	O
available	O
and	O
there	O
were	O
no	O
flags	O
or	O
flag	O
registers	O
.	O
</s>
<s>
Only	O
absolute	O
addressing	O
mode	O
was	O
available	O
and	O
all	O
others	O
were	O
achieved	O
by	O
self-modifying	B-Application
code	I-Application
.	O
</s>
<s>
Two	O
more	O
instructions	O
were	O
not	O
specified	O
but	O
were	O
commonly	O
present	O
in	O
simulators	O
and	O
took	O
instruction	B-Language
codes	I-Language
000aaaaa	O
and	O
111aaaaa	O
:	O
</s>
<s>
NAR	B-Application
1	I-Application
programs	O
are	O
commonly	O
self-modifying	O
.	O
</s>
<s>
If	O
initial	O
accumulator	B-General_Concept
value	O
can	O
be	O
controlled	O
from	O
the	O
control	O
pane	O
,	O
a	O
23rd	O
value	O
can	O
be	O
stored	O
in	O
it	O
.	O
</s>
<s>
Here	O
the	O
instruction	O
"	O
MUA	O
21	O
"	O
at	O
address	O
23	O
has	O
the	O
binary	O
value	O
10010101	O
,	O
which	O
is	O
-107	O
decimal	O
when	O
treated	O
like	O
signed	O
integer	O
in	O
two	B-General_Concept
's	I-General_Concept
complement	I-General_Concept
.	O
</s>
<s>
Similarly	O
to	O
above	O
,	O
this	O
program	O
can	O
add	O
between	O
22	O
and	O
24	O
values	O
,	O
depending	O
on	O
whether	O
address	O
22	O
can	O
be	O
used	O
for	O
both	O
input	O
and	O
output	O
and	O
whether	O
initial	O
value	O
of	O
the	O
accumulator	B-General_Concept
can	O
be	O
used	O
as	O
input	O
(	O
the	O
program	O
should	O
then	O
be	O
executed	O
from	O
address	O
24	O
and	O
instruction	O
at	O
23	O
should	O
be	O
MUA	O
22	O
)	O
.	O
</s>
<s>
If	O
particular	O
implementation	O
stops	O
the	O
computer	O
if	O
it	O
encounters	O
an	O
unknown	O
opcode	B-Language
or	O
it	O
implements	O
additional	O
unconditional	O
jump	O
instruction	O
with	O
opcode	B-Language
"	O
111aaaaa	O
"	O
,	O
then	O
such	O
behaviour	O
can	O
be	O
used	O
as	O
follows	O
:	O
</s>
<s>
Many	O
NAR	B-Application
1	I-Application
simulators	O
were	O
created	O
.	O
</s>
<s>
One	O
of	O
frequently	O
given	O
task	O
was	O
to	O
create	O
a	O
program	O
that	O
adds	O
as	O
many	O
numbers	O
as	O
possible	O
,	O
having	O
those	O
numbers	O
stored	O
in	O
32-byte	O
memory	O
along	O
with	O
the	O
program	O
.	O
</s>
