Assignment 3
Assignment 3
Assignment 3
XC di XC di
F- t F- t
PD
PD
or
or
!
!
W
W
O
O
N
N
Y
Y
U
U
B
B
to
to
ww
ww
om
om
k
k
lic
lic
C
C
.c
.c
w
w
tr re tr re
.
.
ac ac
k e r- s o ft w a k e r- s o ft w a
a. R1R2 + R3
b. R4 R4
c. R5R5-1
d. R6shl R1
e. R7input
3. Determine the microperations that will be executed in the processor
of question 2 when the following 14-bit control words are applied.
a. 00101001100101
b. 00000000000000
c. 01001001001100
d. 00000100000010
e. 11110001110000
4. Convert the following numerical arithmetic expression into reverse
polish notation and show the stack operations for evaluating the
numeric result.
(3 + 4)[10 ( 2 + 6) + 8]
hange E hange E
XC di XC di
F- t F- t
PD
PD
or
or
!
!
W
W
O
O
N
N
Y
Y
U
U
B
B
to
to
ww
ww
om
om
k
k
lic
lic
C
C
.c
.c
w
w
tr re tr re
.
.
ac ac
k e r- s o ft w a k e r- s o ft w a
PD
or
or
!
!
W
W
O
O
N
N
Y
Y
U
U
B
B
to
to
ww
ww
om
om
k
k
lic
lic
C
C
.c
.c
w
w
tr re tr re
.
.
ac ac
k e r- s o ft w a k e r- s o ft w a
b. Add the two binary numbers and interpret the sum assuming
that the numbers are 1)unsigned and 2)signed
c. Determine the values of C, Z, S and V status bits after the
addition.
10. What are the basic differences between a branch instruction, a call
subroutine instruction and program interrupt?