Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE DO NOT WIRITE IT IN A PAPER ! WRITE IT AS A WORDFILE FORM! Part Il: Assembly Lang uage programmim MIPS Registers R8 (t0)

image text in transcribedPLEASE DO NOT WIRITE IT IN A PAPER ! WRITE IT AS A WORDFILE FORM!

Part Il: Assembly Lang uage programmim MIPS Registers R8 (t0) R9 (t1) R10 (t2) R11 (t3) R12 (t4) R13 (t5) R14 (t6) R15 (t7) data n:word 0x5350494d R16 (s0) RO (r0) 0x00000000 0x00000000 0xtf00f100 R1 (at) 0x10010000 0x0000ffff R24 (t8) 0x00000000 R25 (t9) 0x00000000 R26 (k0) word 0x20693265 q:.word 0x61207573 r word 0x0072206c s: .word 0x2073696d t: .word 0x756c6174 u: word 0x37412066 v: .word 0x64636261 wword 0xc561726e x: .word 0x9350494d y:.word 0x4d495033 z: word 0x20617373 R17 (s1) Oxff03f77a R2 (v0) 0x00000000 0x00000000 0x00000023 0x00000000 R3 (v1): 0x0000000c 0x100100200x10010000 0x00000000 R4 (a0) 0x00000023 0x10010030 0x00400020 0x10008000 R5 (a1) 0x10010010 0x10010020 Ox000000ff0x7fffeffD R6 (a2): 0x0000000a 0x803000100x800c1001 0x00000000 R7 (a3) 0x00000060 0xffff0000 0 R18 (s2) R19 (s3): R20 (s4) R21 (s5) R22 (s6) R23 (s7) R27 (k1): R28 (gp) R29 (sp) R30 (fp) R31 (ra) str: asciiz "hello worldln 0x00000010 0x00400060 Data x100000 0x1000fffcl 0x00000000 [0x10010000] 0x6360494d 0x206932650x612075730x0072206c x10010010] 0x2073696d 0x756c6174 0x37412066 0x64636261 0x100100201 0xc561726e 0x9350494d Ox4d495033 0x20617373 0x726c640a l0x00000000 [0x10010030] 0x68656c6c Ox6f20776f 0x726c640a0x00000000 rox100100301 0x68656c6c 0x6120776f Remember that user data declarations start at location 0x 1001 0000, and Eor Problem 3 (30 points): MIPS instructions Use the dala declaralion above for egisler and dala needed. Give all number answers in hex. Remember to use the hex designation '0x" before each hex number Show your work. a- First sra StO, $i6, 20 what number is in $10? then ror $t1,St0,6 what number is in St1? b- First: and $t0, $s1, $s5 then sw $t0x What number is stored at address labeled x7 What is the real memory address of the number stored at label x? c- First: w $t0, 12(5a1) what is in $t0? then bitz St0, loop, is the branch to label loop takn? yes or no) d- First: lb $a0, 19($s3) What byte is stored in $a0? Part Il: Assembly Lang uage programmim MIPS Registers R8 (t0) R9 (t1) R10 (t2) R11 (t3) R12 (t4) R13 (t5) R14 (t6) R15 (t7) data n:word 0x5350494d R16 (s0) RO (r0) 0x00000000 0x00000000 0xtf00f100 R1 (at) 0x10010000 0x0000ffff R24 (t8) 0x00000000 R25 (t9) 0x00000000 R26 (k0) word 0x20693265 q:.word 0x61207573 r word 0x0072206c s: .word 0x2073696d t: .word 0x756c6174 u: word 0x37412066 v: .word 0x64636261 wword 0xc561726e x: .word 0x9350494d y:.word 0x4d495033 z: word 0x20617373 R17 (s1) Oxff03f77a R2 (v0) 0x00000000 0x00000000 0x00000023 0x00000000 R3 (v1): 0x0000000c 0x100100200x10010000 0x00000000 R4 (a0) 0x00000023 0x10010030 0x00400020 0x10008000 R5 (a1) 0x10010010 0x10010020 Ox000000ff0x7fffeffD R6 (a2): 0x0000000a 0x803000100x800c1001 0x00000000 R7 (a3) 0x00000060 0xffff0000 0 R18 (s2) R19 (s3): R20 (s4) R21 (s5) R22 (s6) R23 (s7) R27 (k1): R28 (gp) R29 (sp) R30 (fp) R31 (ra) str: asciiz "hello worldln 0x00000010 0x00400060 Data x100000 0x1000fffcl 0x00000000 [0x10010000] 0x6360494d 0x206932650x612075730x0072206c x10010010] 0x2073696d 0x756c6174 0x37412066 0x64636261 0x100100201 0xc561726e 0x9350494d Ox4d495033 0x20617373 0x726c640a l0x00000000 [0x10010030] 0x68656c6c Ox6f20776f 0x726c640a0x00000000 rox100100301 0x68656c6c 0x6120776f Remember that user data declarations start at location 0x 1001 0000, and Eor Problem 3 (30 points): MIPS instructions Use the dala declaralion above for egisler and dala needed. Give all number answers in hex. Remember to use the hex designation '0x" before each hex number Show your work. a- First sra StO, $i6, 20 what number is in $10? then ror $t1,St0,6 what number is in St1? b- First: and $t0, $s1, $s5 then sw $t0x What number is stored at address labeled x7 What is the real memory address of the number stored at label x? c- First: w $t0, 12(5a1) what is in $t0? then bitz St0, loop, is the branch to label loop takn? yes or no) d- First: lb $a0, 19($s3) What byte is stored in $a0

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

Define indirect financial compensation (employee benefits).

Answered: 1 week ago