Question: Write a program that uses a loop to copy all the elements from an unsigned Word (16-bit) array into an unsigned doubleword (32-bit) array. Is
Write a program that uses a loop to copy all the elements from an unsigned Word (16-bit) array into an unsigned doubleword (32-bit) array. Is npt complete!!! Prints both arrays!!
Given:
INCLUDE Irvine32.inc .data source word 1,2,3,4,5,6,7,8,9,10 count = LENGTHOF source target dword count DUP(?) arraySize dword lengthof target .code main proc mov ecx,count mov esi,0 ; source mov edi,0 ; target L1: // TODO: Add your assembly code ; Display target mov edi,0 mov ecx, arraySize L2: mov eax, target[edi * type target] call WriteHex call Crlf inc edi loop L2 invoke ExitProcess,0 main endp end main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
