You are on page 1of 2

CS-212 Quiz-4 Computer Organization & A.L.

CS-212 - Computer Organization & A.L

Quiz 4, 9th October, 2018 (Fall Semester 2018-19)

Total Marks: 10 Time Allowed: 20 min Roll No. ______________________

Question 1: Convert the following MIPS Assembly Language Instructions into Binary Machine Language
instructions and then express them in Hex format. Label various fields of the binary instructions.
(2.5+2.5 = 5 marks)
Note:
 Constants of immediate instructions are in Hex format (0x00..)
 Shift amount is in Decimal Format
 Offset of Data Transfer Instructions is in Decimal Format

a) lbu $a2, 26172($t6)

b) sltu $v0, $s7, $a3

GCWUS CS Department Fall Semester 2018-19 Page 1 of 2


CS-212 Quiz-4 Computer Organization & A.L.

Question 2: Convert the following instructions given in Hex format into Binary Machine Language
instructions and then into MIPS Assembly Language instructions. Label various fields of the binary version.
(2.5+2.5 = 5 marks)
Note:
 Mention constants of immediate instructions in Hex format (0x00..)
 Mention Shift amount in Decimal Format
 Mention Offset of Data Transfer Instructions in Decimal Format

a) 0xa2837ffc

b) 0x03200008

GCWUS CS Department Fall Semester 2018-19 Page 2 of 2

You might also like