2. Using the following data definitions, write instructions that use MOVSB to co
ID: 3535422 • Letter: 2
Question
2.
Using the following data definitions, write instructions that use MOVSB to copy all the bytes from
Source to target:
.data
source BYTE 50 DUP(?)
target BYTE 100 DUP(?)
4. Write a sequence of instructions that use SCASD to search arrayD for the first value that is not the same as the current contents of EAX. When the search is completed, move the value you have found into EAX:
arrayD SDWORD 50 DUP(?)
5.
Write a sequence of instructions that use STOSD to fill each position of arrayD with the largest possible 32-bit positive integer:
arrayD SDWORD 20 DUP(?)
6.
Write a sequence of instructions using CMPSD that compare arrayA to arrayB in reverse order. After the comparison, move the first pair of non-matching array values to EAX and EBX.
COUNT = 5
arrayA DWORD COUNT DUP(?)
7.
Write a sequence of instructions using LODSB and STOSB that copy each character from arrayA to arrayB, converting it to lowercase in the process. Note: setting bit 5 in an uppercase character will convert it to lowercase:
arrayA BYTE "ABCDEFGHI"
Explanation / Answer
www.scribd.com/.../57/TITLE-STRING-MANIPULATION-USING-8086
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.