Question: Use the following data definitions for Questions 1-3. .data myBytes BYTE 50h, 60h, 70h, 80h, 90h myWords WORD 5 DUP (?), 3000h, 2000h myString BYTE

Use the following data definitions for Questions 1-3. .data myBytes BYTE 50h, 60h, 70h, 80h, 90h myWords WORD 5 DUP (?), 3000h, 2000h myString BYTE ILOVEASSEMBLY'" myDWords DWORD 1, 2, 3 1. What will be the value of EAX after each of the following instructions execute? mov eax, TYPE mystring mov eax, SIZEOF myBytes mov eax, LENGTHOF myBytes mov eax, LENGTHOF myWords mov eax, SIZEOF myWords mov eax, SIZEOF myString mov eax, SIZEOF myDWords mov eax,LENGTHOF myDWords i a. i g i h. Write a single instruction that moves the last two bytes in myBytes to the CX register. What will be the esulting value of CX? 2. 3. Write an instruction that moves the fourth byte in myWords to AL register. Use the following data definitions for Questions 1-3. .data myBytes BYTE 50h, 60h, 70h, 80h, 90h myWords WORD 5 DUP (?), 3000h, 2000h myString BYTE ILOVEASSEMBLY'" myDWords DWORD 1, 2, 3 1. What will be the value of EAX after each of the following instructions execute? mov eax, TYPE mystring mov eax, SIZEOF myBytes mov eax, LENGTHOF myBytes mov eax, LENGTHOF myWords mov eax, SIZEOF myWords mov eax, SIZEOF myString mov eax, SIZEOF myDWords mov eax,LENGTHOF myDWords i a. i g i h. Write a single instruction that moves the last two bytes in myBytes to the CX register. What will be the esulting value of CX? 2. 3. Write an instruction that moves the fourth byte in myWords to AL register
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
