Question: Convert the following branch and jump instructions to Machine Code. Assume fact is at byte address 256 6Y fact: addi $ap, $ap, -8 beq
Convert the following branch and jump instructions to Machine Code. Assume fact is at byte address 256 6Y fact: addi $ap, $ap, -8 beq $50, $to, L1 sw Sa0, 0($sp) slti $to, $a0, 12 addi $v0, $zero, 11 addi Ssp, $sp, 81 > Exit S lw Sa0, 0 ($ap). 11 L1: addi Sa0 Sa0, -11 11w $ra, 4 ($sp) 7 addi $sp, $ap, 8 beq $v0 $zero L1 L1 Part a Part b 256 Part c Part d EXIT: a) What is the immediate field for the first beq? Give your answer is base 10. b) What is the address field for the first jump? Give your answer in base 10. c) What is the immediate field for the second beq? Give your answer in base 10. d) What is the address field for the second jump? Give your answer in base 10.
Step by Step Solution
There are 3 Steps involved in it
a The immediate field for the first beq is 4 ... View full answer
Get step-by-step solutions from verified subject matter experts
