CSC 222 Midterm, Spring 2004
Notre Dame University–Louaize · Computer Organization and Assembly Language · 2 pages
More CSC 222 files
Show the text of this exam
Cyne ALB
Notre Dame University
Faculty of Applied and Natural Science
Computer Organization & Assembly Language. CSC 222
Midterm Exam
1. Answer by writing True or False in the corresponding box: (8 Points)
a) The content of register R1 changes after the register transfer: R, <~ R,
b) A shift left operation multiplies a number by 2.
c) When adding 2 signed numbers, having a carry also means having an
overflow.
d) You can never get an overflow with an arithmetic shift right operation.
2. The binary values of register A=10001110 and B= 00110011. Write the register transfer language
for each operation and show the corresponding results where applicable in the following table:
(20 points)
Operation Register Transfer Language | Result of Operation
An Arithmetic shift left of Register A.
Followed by a Circular shift right.
Add A with B. (Result in A) 7
, OR A with B. (Result in A)
DeA+B
D<B+t!
3. Perform the following conversions: (20 points)
Decimal Binary Hexadecimal Octal BCD
85.125 :
~ | DCI2E i
a —_1— 4
Calculators are not allowed.
Please turn off your clellular phones.
Any attempt to talk to anyone while exam is in session will earn you an F.
4. Derive the following (r)’s complement and (r-1)’s complement for the following numbers:
(12 Points)
L
r’s Complement
(r-1)’s complement
“(6F14CD)i6
(010001 1)2
5. Write the following numbers using /6 digits in the following bases:
lee
7
| Number Result _ _
Base 10 - 1786610
| _ Base 8 - 6542170
6. Perform the subtractions with the following SIGNED numbers:
-1 110
(10 points)
7. Draw the circuit diagram of a 4-bit shift circuit capable of circular shift-right and circular shift-left
operations.
(12 points)
8. Design a 4-bit incrementer/decrementer using full adders having a control signal M When M=0
circuit decrements. otherwise circuit increments. Explain your result.
Good Luci:
Calculators are not allowed.
Please turn off your clellular phones.
Any attempt to talk to anyone while exam is in session will earn you an F.
(12 points)
)