Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer fast. Thanks. Instructions: You will need adiditional shects of paper. Put your name on each shect and identify the question. Use the quick

Please answer fast. Thanks. image text in transcribed
Instructions: You will need adiditional shects of paper. Put your name on each shect and identify the question. Use the quick reference card to find the opcode, funct, and reginter nuaber as suggested below. 1. Derive the hex machine code for the following assembly language instructions, You mut show your work, i.e. the field names, followsd by a mapping of the assembly language statement into those fields (in binary), folloned by hexifying the resmit. Here is an example for the aswmbly language staterment add $t0, \$t. $2. (a) the Iu statement on textbook puge 71 (b) the 1b statement on page 64 of the-textbook (c) the s11 statement on textbook page 92 (d) the nor statement on textbook page 182 (e) the addi statement on page 195 of the textbook (f) the slt statement on page 94 of the textbook (g) the siti statement on page 136 of the textbook (b) the first su statement on page 134 of the textbook (i) the sb htatement on page 195 of the textbook (j) the second 1 ui statement on page 112 of the textbook (k) the bne statement on page 106 of the textbook; the target is four words past the bne statement, i.e., whatever statement is at the sum.exit label. Note: per textbook page 115 , the offset is relative to the following instruction, i.e. number of words from increnented PC value to target. (1) the j statement on page 195 of the textbook; note that the target is at word address 2500=0000009CA. Per texibook page 114. "...the 26-bit field in jump instruction is also a word address.." In this case. the value in the address field (2500) would correspond to the byte address 42500=10000. (w) the {r statement on page 64 of the textbook; note that we only noed a single source register, therefore the rt and rd fields are both set to szero. (n) the jal atatement on page 61 of the textbook: Again, per textbook pago H4, "..tho 26 -bit held in jump instruetions is abso a word addiress..." In this case. the value in the address field would correspond to a byte audresis 42500=10000

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

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

Recommended Textbook for

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

What are the functions of top management?

Answered: 1 week ago

Question

Bring out the limitations of planning.

Answered: 1 week ago

Question

Why should a business be socially responsible?

Answered: 1 week ago

Question

Discuss the general principles of management given by Henri Fayol

Answered: 1 week ago

Question

3. Define the attributions we use to explain behavior

Answered: 1 week ago