Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here is the ANNA guide: https://seattleu.instructure.com/courses/1555572/files/62465985/download?wrap=1 2. Assume that ANNA files can now be assembled into object files and linked. Consider the following ANNA program

Here is the ANNA guide:

https://seattleu.instructure.com/courses/1555572/files/62465985/download?wrap=1

image text in transcribedimage text in transcribed

2. Assume that ANNA files can now be assembled into object files and linked. Consider the following ANNA program and answer the following questions. For your convenience, addresses precede each instruction. They are not part of the instruction. (10 + 10 + 10) # Code section 0 start: lli r1 &count 1 lui rl &count 2 lwr2 rl 0 3 lli r3 &total 4 lui r3 &total 5 swr2 r3 0 6 lli r4 0 7 llir5 8 8 begin: sub r7 r4 r5 9 bgz r7 &end 10 llir7 &compute 11 lui r7 &compute 12 jalr r7 r6 13 swr3rl 0 14 lli r2 &tally 15 lui r2 &tally 16 lwr3 r2 0 17 addi r3 r3 1 18 swr3 r2 0 19 addi r4 r4 1 20 bez r0 &begin 21 end: lli r7 &output 22 lui r7 &output 23 jalr r7 r6 24 .halt 25 output: out r3 26 jalr r6 r0 2. Assume that ANNA files can now be assembled into object files and linked. Consider the following ANNA program and answer the following questions. For your convenience, addresses precede each instruction. They are not part of the instruction. (10 + 10 + 10) # Code section 0 start: lli r1 &count 1 lui rl &count 2 lwr2 rl 0 3 lli r3 &total 4 lui r3 &total 5 swr2 r3 0 6 lli r4 0 7 llir5 8 8 begin: sub r7 r4 r5 9 bgz r7 &end 10 llir7 &compute 11 lui r7 &compute 12 jalr r7 r6 13 swr3rl 0 14 lli r2 &tally 15 lui r2 &tally 16 lwr3 r2 0 17 addi r3 r3 1 18 swr3 r2 0 19 addi r4 r4 1 20 bez r0 &begin 21 end: lli r7 &output 22 lui r7 &output 23 jalr r7 r6 24 .halt 25 output: out r3 26 jalr r6 r0

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions