Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions