The following three problems in this Exercise refer to this function, written in MIPS assembly following the

Question:

The following three problems in this Exercise refer to this function, written in MIPS assembly following the calling conventions from Figure 2.14:a. f: add bnez sub L: jr b. f: add slt move beqz jr L: move $v0, $al, $a0 $a2, L $v0, $a0, $al $v0 $a2, $a3,

Figure 2.14Name Register number $zero $v0-$v1 $a0-$a3 $t0-$t7 $50-$s7 $t8-$t9 $gp $sp $fp $ra 0 2-3 4-7 8-15 16-23 24-25

At the point where this function is called register $a0, $a1, $a2, and $a3 have values 1, 100, 1000, and 30, respectively. What is the value returned by this function? If another function g is called from f, assume that the value returned from g is always 500.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Organization And Design The Hardware Software Interface

ISBN: 9780123747501

4th Revised Edition

Authors: David A. Patterson, John L. Hennessy

Question Posted: