Question 2 15 Points Assume that the variablessa. b. and I are defined as words and already allocated to $41. $12. sa, s
Posted: Fri Apr 29, 2022 6:57 am
Question 2 15 Points Assume that the variablessa. b. and I are defined as words and already allocated to $41. $12. sa, sto respectively. The code thm. converts the following it statement into MIPS Assembly is ifa >b) 88 (a) a xor b:elsef-axnord: ble beg xnor 3 kor sti,st2,1 sti,st, Sto,$t1,$t2 done Sto,sti, sta done: bge bne xhor $1,82, $t1,$t3,1 ste,sti st2 done tº,ti,$t2 3 xor L1: done: blt beg St1,$t2, L1 $t1,$t3, L1 Sto,st1,$t2 done xor 3
blt beg xor sti, $t2,1 $t1,$t3, L1 $te,$t1,$t2 done $te,$t1,$t2 U i xnor LI: done: bgt bne xor $t1,$t2, L1 $t1,$t3, L1 $tº,$ti,$t2 done $te,$t1,$t2 j xnor L1: done: E None
blt beg xor sti, $t2,1 $t1,$t3, L1 $te,$t1,$t2 done $te,$t1,$t2 U i xnor LI: done: bgt bne xor $t1,$t2, L1 $t1,$t3, L1 $tº,$ti,$t2 done $te,$t1,$t2 j xnor L1: done: E None