Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Convert a = 0 command to MIPS assembly. With a is the register $s2


What I have tried:

addi $s2, $zero, 0
           or
add $s2, $zero, $zero


Two ways I tried. Which way is correct?

Thanks
Posted
Updated 23-Oct-21 21:25pm
v2

1 solution

Or just
MIPS
lw $s2, $zero
Which avoids any arithmetic at all.
 
Share this answer
 
Comments
ubutu2334 24-Oct-21 6:59am    
Are the two ways I tried correct?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900