Question: Using x86 assembly, please complete the loop in the code segment for the prompt, both pictured below: Thank you! Write a program that uses the
Write a program that uses the variables below and Mov instructions to copy the value from bigEndian to littleEndian, reversing the BYTE order You will need to use PTR or LABLE to access just a BYTE of the DWORD element, and use LOOP (set ECX to 4) and ESI and EDI for indirect addressing. Remember ESI is called source index register and EDI is the destination index register (so the name match function nicely) Print out the value of littleEnian each time through the loop (after you have moved one of the BYTEs over Again the variables bigEndian and littleEndian are to be DWORDs data big Endian DWORD 12345678h. littleEndian DWORD 0 hints: loop counter 4 mov ECX, index for destination array 3 mov EDI, index for source array 0 mov ESI, TOP al big Endian [ESI] mov little Endian [EDI al mov inc ESI 1 dec EDI 1 write littleEndian to screen loop TOP
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
