2.15 15] Convert the following instruction to hex. Step by step show the value o
ID: 3754410 • Letter: 2
Question
2.15 15] Convert the following instruction to hex. Step by step show the value of each field in decimal, the place it in the correct instruction format, complete any additional fields the reference card requires, convert the entire thing to binary, and then to hex slt $sl, $a0, $al Name of instruction: Answer: set less than a. b. Instruction type: RI' Answer: R Decimal value of opcode:_ c. d. Remaining fields and values in binary: e. Resulting 32-bit string grouped by field (6 for opcode, etc.) Page 6 of 7 3tcion reorganized into4-b groups g. Hex version of instruction: 0xExplanation / Answer
Answer is as follows :
part A and B are already answered.
c) Tjhe opcode for SLT instruction is 000000 i.e. 0 in decimal.
d) We know the syntax of slt instrcution i.e. slt $d, $s, $t
where
$d is destination register $s1 i.e. Register 17 and binary equivalent of 17 is 10001
$s is source register 1, $a0 i.e. Register 4 and binary equivalent of is 00100.
$t is source register 2, $a1 i.e. Register 5 and binary equivalent of 00101.
And other 11 bits are used as funct bits i.e. 00000101010
e) Resulting 32 bits :
syntax to define SLT instruction in machine language is
000000 sssss ttttt ddddd 00000101010 , where d is destination register, s is source register1 and t is source register2.
so machine instruction is :
000000 00100 00101 10001 00000101010
f) Organize into four groups :
00000000 10000101 10001000 00101010
g) Hexadecimal is equal to 0x0085882A.
if there is any query please ask in comments...
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.