Question: Please answer this question in MASM Assembly language, and Please read the question and make sure the code you are answering with is correct. Thanks
Please answer this question in MASM Assembly language, and Please read the question and make sure the code you are answering with is correct. Thanks for your time and consideration.

Write a portion of assembly code that uses shifts and rotates to separate each byte of EAX and store them in order from most to least significant in BL,BH,DL, and DH respectively. Your code must only use shifts, rotates and the MOV instruction. Once your code is finished executing, the values of the registers should be: BL= the first and highest byte of EAX (most significant) BH= the second byte of EAX DL= the third byte of EAX DH= the fourth and lowest byte of EAX (least significant)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
