Answered step by step
Verified Expert Solution
Link Copied!

Question

...
1 Approved Answer

Assume you are given an array of four 16-bit numbers stored in memory with a starting address x3200. Using indirect addressing, write an LC-3 machine

image text in transcribedimage text in transcribed

Assume you are given an array of four 16-bit numbers stored in memory with a starting address x3200. Using indirect addressing, write an LC-3 machine language program that will copy the same four 16-bit numbers in reverse order, starting at memory address x3210. Load your program starting at address x3050. For example, if the following are the four 16-bit values stored in x3200, x3200 12 X3201 23 x3202 34 X3203 45 then the result of your program execution should write the following starting at memory address x3210: X3210 45 X3211 34 X3212 23 X3213 12 In addition, assume the following data are stored in memory: x3100 x3200 X3101 x3201 X3102 X3202 x3103 x3203 x3104 x3210 X3105 X3211 x3106 X3212 X3107 x3213 You will need to demonstrate the correct execution of your programs by using the LC-3 Simulator. Make sure you upload your properly documented source code by the due date. Assume you are given an array of four 16-bit numbers stored in memory with a starting address x3200. Using indirect addressing, write an LC-3 machine language program that will copy the same four 16-bit numbers in reverse order, starting at memory address x3210. Load your program starting at address x3050. For example, if the following are the four 16-bit values stored in x3200, x3200 12 X3201 23 x3202 34 X3203 45 then the result of your program execution should write the following starting at memory address x3210: X3210 45 X3211 34 X3212 23 X3213 12 In addition, assume the following data are stored in memory: x3100 x3200 X3101 x3201 X3102 X3202 x3103 x3203 x3104 x3210 X3105 X3211 x3106 X3212 X3107 x3213 You will need to demonstrate the correct execution of your programs by using the LC-3 Simulator. Make sure you upload your properly documented source code by the due date

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Fundamental Managerial Accounting Concepts

Authors: Thomas Edmonds, Christopher Edmonds, Bor Yi Tsay, Philip Olds

8th edition

978-1259569197

Students also viewed these Accounting questions