Question: Q 1 . I will change the mips code below to machine language. I will change it to fit R - format, I - format,

Q1. I will change the mips code below to machine language. I will change it to fit R-format, I-format, and J-format. Show the machine language of each code and the address of each code when you say the first start starts at 0x0000000000. Show the parts of opcode, rs, rt, rd, shamt, function that are calculated that way. The machine language parts of the j and beq commands are particularly important.
addi $1, $0,10
addi $2, $0,0
Loop: beq $1, $0, EXIT
nop
add $2, $2, $1
addi $1, $1,-1
j Loop
nop
EXIT:
Q2. I will change the mips code below to machine language. I will change it to fit R-format, I-format, and J-format. Show the machine language of each code and the address of each code when you say the first start starts at 0x0000000000. Show the parts of opcode, rs, rt, rd, shamt, function that are calculated that way. The machine language parts of the j and beq commands are particularly important.
addi $1, $0,10
addi $1, $0,1
addi $2, $0,1
addi $3, $0,0
addi $5, $0,10
Loop:beq $4, $0, EXIT
nop
add $3, $1, $2
add $1, $2, $0
add $2, $0, $3
addi $4, $4,-1
j Loop
nop
EXIT:

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!