Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write an lc-3 program. Num1 is located at location x3020 , num2 is at x3021 and num3 is at x3022. load r0 with num1, r1

write an lc-3 program. Num1 is located at location x3020 , num2 is at x3021 and num3 is at x3022. load r0 with num1, r1 with num2,r2 with num3 . if r0 + r2 is greater than r2 addd r0 + 2 and store in r0 and also add r1 + 3 and store in r1. if r2 isnt greater subtract 1 from r0 and store in r0 and also subtract 2 from r1 and store at r1. The program should end if R2 = 3. store r0 at location 3020 , r1 at 3021 and r2 at 3022. the program should only include 1 halt/breakpoint and should run on the lc-3 no matter which branch was taken.

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago