If I write
.data
one: .word 1
and later in my program I write
beq $a3,one,loop1
will it work? ie does beq late labels as arguments?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. You will have to load the word into a register first:
lw $t0, oneMIPS is a load/store architecture. The only way to get a value from memory is to use a load instruction.