Question: Lab 2 . O DESCRIPTION This lab is concerned with program relocatable code. PC relative addressing modes are useful here. In a multiple user environment,
Lab
O
DESCRIPTION
This lab is concerned with program relocatable code. PC relative addressing modes are useful here. In a multiple user environment, a user
s program should be capable of residing anywhere in memory. That is
user programs should be address independent.
Your assignment here is to reverse the elements of a vector. The procedure is as follows:
Create a vector of the ASCII characters
A
J
at location $
AC
Construct a sequence of operations beginning at location $
ACE which will reverse the elements of the vector.
Display both the ASCII vector and the instructions.
Execute your program.
Display the vector to insure that it was indeed reversed.
Perform a Block Move
BM
of the entire package
vector and instructions
to a new location at $
Display your program in its new location and then execute it
Display
the vector to insure that it was again reversed. The vector should now be as it was initially, only in a new location.
In order for all of this to work, references to data must be PC relative. Turn in all items which you were asked to display along with your evaluation of the lab. Consider the consequences of not being able to relocate your programs or having to specify a particular memory address to ensure proper program execution.
CAN YOU AlSO SEND ME CODE AND OUTPUT BEFORE AND AFTER EXECUTION
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
