Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 %r3 after this program is executed?

! Program 2

.begin

.org 2048

m_start: ld [x], %r1

ld [y], %r2

subcc %r1, %r2, %r0

bneg else

andcc %r1, %r2, %r3

ba done

else: orcc %r1, %r2, %r3

done: st %r3, [a]

jmpl %r15+4, %r0

x: 30

y: 48

a: 0

.end

image text in transcribed
PART 2: 1. Please add comment 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 %r3 after this program is executed? ! Program 2 .begin .org m_start: ld subcc bne andcc ba orcc st jmpl 2048 [x], %r1 [y], %r2 %r1, %r2, %ro else %r1, %r2, %r3 done %r1, %r2, %r3 %r3, [a] %r15+4, %ro else: done: XX 30 48 .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_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

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

Define language, and recognize its properties.

Answered: 1 week ago