Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For instruction lw $t2, 64 ($0) 1. OP code of lw is 35 in decimal, convert 35 to binary, 35 is _____ in binary. Register

For instruction "lw $t2, 64 ($0)"

1. OP code of lw is 35 in decimal, convert 35 to binary, 35 is _____ in binary. Register number for $t2 is 10 in decimal, it is also _____ in binary. 2. In 32 bit MIPS assembly instruction, in terms of bit number size, OP code will have _____ bits in terms of the total number of bits.

The register fields will have 5 bits for registers $t2 and $0, respectively.

3. In the above lw instruction, destination register, $t2, is the first in register field in assembly code, but it will be the second register field in machine code.

32 bit "lw" instruction has the following structure/format: 6bit for OP; 5 bit each for two registers, respectively; 16 bit immediate; The field value in decimal for the above lw instruction will be 35,_____ , _____ , 64. 4. Based on 3, then the machine code for the above lw instruction will be:

_____ _____ _____ _____

5. Convert the above machine code to hexadecimal. The result is _____ . Note that 4 bit binary equals 1 bit hexadecimal

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

Students also viewed these Databases questions

Question

2 What backs the money supply.

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago