MIPS Assembly: For these programming exercises, use only those instructions that
ID: 3817417 • Letter: M
Question
MIPS Assembly:
For these programming exercises, use only those instructions that have been discussed so far in these notes:
Start out a program with the instruction that puts a single one-bit into register one:
Now, by using only shift instructions and register to register logic instructions, put the pattern 0xFFFFFFFF into register $1. Don't use another ori after the first. You will need to use more registers than $1. See how few instructions you can do this in. My program has 11 instructions.
and andi nor or ori sll srl xor xoriExplanation / Answer
You can do the task in these following instructions ori $1, $0, 0x01 or $1, $0, $0 nor $1, $0, $0
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.