7
Transportbefehle
LOAD, STORE
Arithmetische und logische Befehle
ADD, SUB, AND, OR, CMP
Schiebebefehle
SH, ROT
Sprungbefehle
JMP, JGT
Sonderbefehle
Darstellung in Maschinensprache
0100 LOAD 0118 | |
0102 STORE 0116 | |
0104 LOAD 0114 | |
0106 JUMPZERO 011a | |
0108 SUB 0118 | |
010a STORE 0114 | |
010c LOAD 0116 | |
010e ADD 0116 | |
0110 STORE 0116 | |
0112 JUMP 0104 | |
0114 #2 | |
0116 #0 | |
0118 #1 | |
011a STOP |
Darstellung in Hochsprache
y = 1;
while (x !=0){
x = x - 1;
y = y + y;
}
d.h. y = 2 ^x