Capital University of Science and Technology Department of Computer Science CS 2523: Computer Organization and Assembly Language (3) : Spring 2021
Capital University of Science and Technology Department of Computer Science CS 2523: Computer Organization and Assembly Language (3) : Spring 2021
Page 1 of 3
Solution:
i. Fetch:
ii. Decode:
iv. Execute:
v. Store:
a) 0000 – 0001
b) 1111 + 0001
c) 0111 + 0001
d) 1000 – 0001
Solution:
Page 2 of 3
Question 2 (02 marks): Perform the following operations and elaborate the state of Overflow Flag
after each operation:
a) 0100 + 0001
b) 1100 + 1100
c) 1000 + 1000
d) 0100 + 0100
Solution:
Question 3 (1.5 marks): Convert -26 into 32-bit floating point representation:
Solution:
Solution:
Question 5 (01 mark): The address of var1 is 00400B20. The address of the next variable after var1 is
0040A06C. How many bytes are used by var1?
Solution:
Page 3 of 3