Im having trouble with the following:
“Shift Remainder register left
setting rightmost bit to 0”
My attempt:
lui $s0, 1 # Shift Remainder register left by 1 bit
or should it be 1*4 = 4 instead of 1 for offset?
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.
Do you have an instruction set reference?
luiis Load Upper Immediate, it doesn’t shift the register, it shifts the immediate, and by 16 bits. Solui $s0, 1just loads0x00010000into$s0.To shift left, you can use the
sllinstruction, such assll $s0, $s0, 1