Question: Branch and Jump Instructions Given below is a MIPS assembly language function labeled FNC1. The address of each instruction is specified to the left in

Branch and Jump Instructions Given below is a MIPS assembly language function labeled FNC1. The address of each instruction is specified to the left in hexadecimal. The arguments passed to this function are $a0 and $a1. Ox00001000 FNC1: lb $t0,($a0) 0x00001004 sb $t0, 0($a1) Ox00001008 beg $t0, $zero, End Ox0000100C addi $20, $a0, 1 Ox00001010 addi $a1, $a1, 1 Ox00001014 j FNC1 Ox00001018 End: nop (a) Briefly describe what this function does. (b) Determine the instruction type (R, I, or J), and the decimal value of each field of the instruction for the branch instruction in the function given above. (c) Specify the machine language (ML) instruction, in hexadecimal, for the branch instruction above. (d) Determine the instruction type (R, I, or J), and the decimal value of each field of the instruction for the jump instruction in the function given above Branch and Jump Instructions Given below is a MIPS assembly language function labeled FNC1. The address of each instruction is specified to the left in hexadecimal. The arguments passed to this function are $a0 and $a1. Ox00001000 FNC1: lb $t0,($a0) 0x00001004 sb $t0, 0($a1) Ox00001008 beg $t0, $zero, End Ox0000100C addi $20, $a0, 1 Ox00001010 addi $a1, $a1, 1 Ox00001014 j FNC1 Ox00001018 End: nop (a) Briefly describe what this function does. (b) Determine the instruction type (R, I, or J), and the decimal value of each field of the instruction for the branch instruction in the function given above. (c) Specify the machine language (ML) instruction, in hexadecimal, for the branch instruction above. (d) Determine the instruction type (R, I, or J), and the decimal value of each field of the instruction for the jump instruction in the function given above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
