Question: Programming Exercise 1 : - CONVERTING FROM BIG ENDIAN TO LITTLE ENDIAN Write a program that uses the variables below and MOV instructions to copy
Programming Exercise :
CONVERTING FROM BIG ENDIAN TO LITTLE ENDIAN
Write a program that uses the variables below and MOV instructions to copy the value from bigEndian to littleEndian, reversing the order of the bytes.
The number's bit value is understood to be hexadecimal.
data
bigEndian BYTE hhhh
littleEndian DWORD?
Hint: Using DumpMem is the best way to show the effect byte orders "before" and "after"
Sample output:
DumpMem output showing Big Endian Byte order
Dump of offset E
DumpMem output showing Little Endian Byte order
Dump of offset E
IMPORTANT: for this exercise, NOT allowable to use any one of these directives: IFELSE, ELSEIF, WHILE, REPEAT, etc
please include irvine at the top and comments to explain
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
