Question
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.
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 jumpsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started