Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HW7 Assignment (20 points) Answer the following questions: 1. What are the lowest and highest addresses in a 220 byte memory in which a four-byte

image text in transcribed

HW7 Assignment (20 points) Answer the following questions: 1. What are the lowest and highest addresses in a 220 byte memory in which a four-byte word is the smallest addressable unit? ( 2 points) 2. Make a table indicating which of the instruction addcc, andcc, orce, and the synthetic instruction not, can set the z, n, cand v flags to 1. (2 points) 3. Which of the following ARC instructions are legal, and if not, why not? Assume l_b is 0xFFFB. (6 points) a. sethi OxABCDEF, fr12 b. or $r15, 0x1FFF, fr22 c. srl fr8, 32, fr9 4. A section of ARC assembly code is shown below. What does it do? Express your answer in terms of the actions it goes through. Does it add up numbers, or clear something out? Does it simulate a for loop, a while loop or something else? Assume that a and b are memory locations that are defined elsewhere in the code. (4 points) Y : ld [k], fr1 addcc fri, -4, fr1 st fri, [k] bneg x ld [a], fri, fr2 ld [b], fri, fr3 addcc fr2, fr3, fr4 st fr4, fri, [c] ba Y X: jmpl %r15 + 4, 8r0 k : 40

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions