CSC 222 Midterm, Spring 2002
Notre Dame University–Louaize · Computer Organization and Assembly Language · 2 pages
More CSC 222 files
Show the text of this exam
Notre Dame University
Faculty of Applied and Natural Science
Computer Organization & Assembly Language. CSC 222
Midterm Exam
16 May 2002
I. Answer by writing ‘Lrue or False in the corresponding box: (8 points)
a) A microopearation is a term that describes samll and fast operations.
b) DR < M[AR] represents a write operation.
c) You cannot get an overflow when you're adding or subtracting unsigned
numbers.
d) The ALU of a computer is usually made of Sequential circuits and not
combinational logic.
2. The binary values of register A=11110010 and B= 10101110. 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 right of Register A. 4
Followed by a Logic shift right. i
AND A with B. (Result in A)
XOR A with B. (Result in A)
_ ID «<-A+Bel |
| ,D<—B _
3. Perform the following conversions: (24 points)
Decimal Binary Hexadecimal Octal BCD |
17.25 a
11001010.001
4. Derive the tollowing (r)’s complement and (r-1)’s complement for the following numbers:
(12 points)
(1352700)
rs Complement (r-1)’s complement
(0000000)10
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.
5. Write the following numbers using /6 digits in the following bases: (6 points)
Number Result _
Base 16 - 3DCA09
Base 8 _ - 6542170
6. Perform the subtractions with the following UNSIGNED numbers: (10 Points)
12 0 0 11 100 0
- 9 5 - 0111
7. Draw the circuit diagram of a shift circuit that selects and generates arithmetic shift right and
arithmetic shift left operations. Explain! (10 points)
8. Design a 2-bit logic circuit capable of generating any of the following 4 logic functions:
(L0 points)
Boolean Function Name
Fy Set to all 1’s
Fo Clear
F3 NAND
| Fa Complement
Good Luck
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.