Question: For these programming exercises, use only those instructions that have been discussed so far in these notes: and andi nor or ori sll srl xor

For these programming exercises, use only those instructions that have been discussed so far in these notes:

and andi nor or ori sll srl xor

xori

1)

Put the following bit pattern into register $1 :

DEADBEEF 

A. Easy program: do this using just three instructions.

2) Start out a program with the instruction that puts a single one-bit into register one:

ori $1,$0,0x01 

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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!