Choose the MIPS codes that translate for the following C statement and do not use any psuedoinstruction.
s2 = s1 - 7; •
A: subi $s2, $s1, 7
B: addi $s2, $s1, -7
C: addi $1, $0, 7
sub $s2, $s1, $1
D: addi $1, $0, -7
add $s2, $51, $1 .
B
Α
C
D

Q&A Education