Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1: (a) Assembly language to Machine language: Write down the machine language representation for the following instruction. sb $s0,10($s1) [Hint: Assume $s0 = 16,

Problem 1:

(a) Assembly language to Machine language: Write down the machine language representation for the following instruction.

sb $s0,10($s1)

[Hint: Assume $s0 = 16, $s1 = 17]

(b) Machine language to Assembly language:

Given this MIPS machine language code fragment in memory:

Address Contents

0x00400024 0x3411000b

0x00400028 0x3c101001

0x0040002c 0x2a21000b

0x00400030 0x14200007

0x00400034 0xae080004

0x00400038 0x2231ffff

0x0040003c 0x01129020

0x00400040 0x2210fffc

0x00400044 0x2a210002

0x00400048 0x1020fffb

Disassemble and show the MIPS instructions.

For constants in I-format instructions, you may leave them in hexadecimal, or translate them into decimal.

Do not worry about labels. Show clearly target addresses for all branches and jumps.image text in transcribed

Problem 1: 1. (a) Assembly language to Machine language: Write down the machine language representation for the following instruction sb Ss0,10(Ss1) Hint: Assume Ss0-16, Ss1-17] (b) Machine language to Assembly language: Given this MIPS machine language code fragment in memory: Address Contents 0x00400024 0x00400028 Ox0040002c 0x00400030 0x00400034 0x00400038 0x0040003c 0x00400040 0x00400044 0x00400048 0x3411000b 0x3c101001 0x2a21000b 0x14200007 Oxae080004 0x2231ffff 0x01129020 0x2210ffc 0x2a210002 Ox1020fffb Disassemble and show the MIPS instructions For constants in I-format instructions, you may leave them in hexadecimal, or translate them into decimal Do not worry about labels. Show clearly target addresses for all branches and jumps

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

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

09 Administer internal and external privacy policies. Knowledge of:

Answered: 1 week ago