Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote