Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise #1: PC-Relative Addressing Mode Assume you are given an array of four 16-bit numbers stored in memory with a starting address x3100. Using PC-relative

Exercise #1: PC-Relative Addressing Mode

Assume you are given an array of four 16-bit numbers stored in memory with a starting address x3100. Using PC-relative addressing, write an LC-3 machine language program that will copy the same four 16-bit numbers in reverse order, starting at memory address x3110. For example, if the following are the four 16-bit values stored in x3100,

x3100

12

x3101

23

x3102

34

x3103

45

then the result of your program execution should write the following starting at memory address x3110:

x3110

45

x3111

34

x3112

23

x3113

12

Load your program starting at address x3050. You will need to demonstrate the correct execution of your program by using the LC-3 Simulator.

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

Build It For The Real World A Database Workbook

Authors: Wilson, Susan, Hoferek, Mary J.

1st Edition

0073197599, 9780073197593

More Books

Students also viewed these Databases questions

Question

Write formal proposal requests.

Answered: 1 week ago

Question

Write an effective news release.

Answered: 1 week ago

Question

Identify the different types of proposals.

Answered: 1 week ago