Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. USE Arc tools 2.12 Arc ,Arc Assembly Arc simulator 1. Please add comments for each line. a. Explain what the program intends to do.

2. USE Arc tools 2.12

Arc ,Arc Assembly Arc simulator

1. Please add comments for each line.

a. Explain what the program intends to do.

b. Assemble the code by hand.

2. Run the program through the simulator

3. What is the content of %r1 after this program is executed?

! Program 4

.begin

.org

2048

main:

ld

[a], %r1

ld

[b], %r2

ld

[c], %r3

top:

subcc

%r4, 3, %r0

be

done

subcc

%r5, %r6, %r0

bneg

else

orcc

%r1, %r2, %r1

addcc

%r6, 1, %r6

ba

bottom

else:

andcc

%r1, %r3, %r1

addcc

%r5, 1, %r5

bottom:

addcc

%r4, 1, %r4

ba

top

done:

st

%r3, [y]

jmpl

%r15+4, %r0

.org

3000

a:

0xa0

b:

0x33

c:

0x52

y:

2

.end

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

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions

Question

2 What participation techniques are used?

Answered: 1 week ago