Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

COMPUER ORGANIZATION (CE-313)

Assignment #2

Q#1: Register A holds 8-bit binary 00100110. Determine the B operand and the logic microoperation to be
performed in order to change the value in A to:

a) 11011001

b) 10101111

Q#2: The 8-bit registers AR, BR, CR and DR initially have the following values:

AR = 10001101

BR = 10000001

CR = 01000110

DR = 00010101

Determine 8-bit values in each register after execution of the following sequence of microoperations:

a. AR  AR + BR Add AR to BR

b. CR  CR  DR, BR  BR + 1 AND DR to CR, Increment BR

c. AR  AR – CR Subtract CR from AR

Q#3: (a) An 8-bit register contains the binary value 10011100. What is the register value after an arithmetic
shift right? Starting from initial number 10011100, determine register value after an arithmetic shift
left and state whether there is an overflow.

(b) Starting from initial value of R = 11011101, determine the sequence of binary values in R after a
logical shift-left, followed by a circular shift-right followed by logical-shift right and a circular shift-
left.

Q#4: What is the wrong with the following register transfer statements:

a. xT : AR  AR , AR  AR + 1

b. yT : R1  R2, R1 R3

c. zT : PC  AR, PC  PC + 1

***************

You might also like