Programming / parameter assignment
Instruction Manual PROTECT-PSC
V 2.6R01 / 04.19
Translation tables
Our assumed virtual machine has only a very limited instruction set. In order to dis-
tinguish between the instructions in the statement list, the instructions of the virtual
machine are shown by an operand in parentheses. The 1 bit operand is shown as
‘v’ for value.
Copies A to stack and increases stack address
Loads value of stack into A and lowers stack address
Loads value of stack into A without altering address
Performs AND logic operation with A and w and saves result in A
Performs NAND logic operation with A and w and saves result in A
Performs OR logic operation with A and w and saves result in A
Performs NOR logic operation with A and w and saves result in A
Performs XOR logic operation with A and w and saves result in A
A = 1, with change from 0 to 1 of w; otherwise A=0
A = 1, with change from 1 to 0 of w; otherwise A=0
Performs AND logic operation of A and S0, saves result in A and
lowers stack address
Performs OR logic operation of A and S0, saves result in A and low-
ers stack address
T
T
a
a
b
b
l
l
e
e
6
6
-
-
2
2
8
8
I
I
n
n
s
s
t
t
r
r
u
u
c
c
t
t
i
i
o
o
n
n
s
s
o
o
f
f
v
v
i
i
r
r
t
t
u
u
a
a
l
l
m
m
a
a
c
c
h
h
i
i
n
n
e
e
Every instruction in Table 6-2 can now be specified by an equivalent instruction
sequence of the virtual machine.
T
T
a
a
b
b
l
l
e
e
6
6
-
-
2
2
9
9
T
T
r
r
a
a
n
n
s
s
l
l
a
a
t
t
i
i
o
o
n
n
t
t
a
a
b
b
l
l
e
e
o
o
f
f
s
s
t
t
a
a
t
t
e
e
m
m
e
e
n
n
t
t
l
l
i
i
s
s
t
t
/
/
v
v
i
i
r
r
t
t
u
u
a
a
l
l
m
m
a
a
c
c
h
h
i
i
n
n
e
e