Module 6
Lab 6.1
3a
Mul X instruction address is address location 4
binary represented is 00010100
3b
Binary #2 00000010
3d
Variable Y is stored in address location 130 binary representation of
10000010
3e
Variable X is stored in address location 129 binary representation
10000001
3f
Variable W is stored in address location 128 binary representation
10000000
3g
ADD = 00000000
MUL = 00000010
STO = 00000101
#4
LOD #5
ADD W
SUB Z
DIV X
STOY
NOP
NOP
NOP
Module 6
Lab 6.2
8a
5 Z
_ X
Y +
=
8b
Z X
+
5 (EXP)
Y -
=
8c
Z X
+
(EXP) 2
5 (EXP)
Y -
=
9A
Y = X - 3 * Z
9B
Y = (X-3) +Z
9C Y = X - (3 * (Z/2))
Module 6
Lab 6.3
#5
LOD #3
MUL Y
STO T1
LOD #2
DIV W
ADD T1
STO X
6a
LOD Z
MUL #3
SUB X
STO Y
6b
LOD Z
ADD #5
DIV #2
STO X
6c
LOD W
MUL W
STO T1
LOD X
MUL X
ADD T1
STO Z
7a
X= Z / 2
7b
X = (7/2) * Y
7c
X = Z / (2 / Y)
Module 6
Lab 6.4
#8
LOD X
ADD Y
ADD Z
STO T1
LOD #2
DIV T1
STO W