please explaine how he get the number 5, 17, 0, -5 - [12] Consider the MIPS assembly language code segment given below. The address of each instruction is specified to the left in hexadecimal. 0x...

please explaine how he get the number 5, 17, 0, -5



- [12] Consider the MIPS assembly language code segment given below. The address of each instruction is specified to the left in hexadecimal. 0x00000100 Ox00000104 $t1, var name 1 $t2, var name2 $$1, 0 ($t1) $s1, 0 ($t2) addi $t1, $t1, 1 addi $t2, $t2, 1 bne $s1, $zero, L1 la la 0x00000108 L1: lbu 0x0000010C sb 0x00000110 0x00000114 0x00000118 0X0000011C Nxt: nop r-type (a) Determine the decimal value of each field of the branch instruction. Label each field. peude 5 Rs Imn Rt 17 -5 0 31 -S 17 (c) Specify the equivalent MIPS machine language instruction in binary o0010110001 obo00| oo 0190d000 1o00||11 (d) Specify the equivalent MIPS machine language instruction in hexadecimal. ttttoil Ox l620 FPFB Oxti FFFB (e) What does this code segment do? Circle one. I. Calculates the sum of the elements of an array. 2 Counts the number of zeros in an array. 3. Copies a string 4 Calculates the length of a string. S. None of the above.

May 17, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here