Question: EECE 3 4 3 5 Lab 0 7 : Data Transfer and Arithmetic Instructions A . Objectives: to understand and experiment on data transfer and
EECE Lab : Data Transfer and Arithmetic Instructions
A Objectives: to understand and experiment on data transfer and arithmetic instructions
B Resources
Online resources
Textbook
C Lab Preparation
Use online resources or the textbook to understand the debug commands and assembly instructions used in the assignment.
Start the Debug Application.
First fill the memory with some data by executing the following command:
f ffff AA A B A C B CC
Note that in the lab report, you will be required to show the results you obtained in your experiments. You thus need to take screenshots of your work.
D The Lab
Part Data Transfer Instructions
The following XCHG instruction tries to swap the the word contents at and in the data segment. Try to assemble and execute it What do you find?
XCHG
If the above instruction cannot swap the two words at and in the data segment, explain why?
Design your own instruction sequence to swap the two words at and using XCHG only.
Assemble and execute your sequence of instructions, and verify the sequence works as designed.
Explain what XLAT does.
Design a sequence of instructions using XLAT to translate the index of in AL to the byte content at the physical address BH; at the end of the execution of the sequence of instructions, the in AL becomes the byte content at the physical address BH
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
