7. What value will EAX contain after the following instructions execute? .data d
ID: 3586318 • Letter: 7
Question
7. What value will EAX contain after the following instructions execute?
.data
dVal DWORD 12345678h
.code
mov ax,3
mov WORD PTR dVal+2,ax
mov eax,dVal
8. Use the following variable definitions to answer parts A, B, and C:
.data
var1 SBYTE -4,-2,3,1
var2 WORD 1000h,2000h,3000h,4000h
var3 SWORD -16,-42
var4 DWORD 1,2,3,4,5
A) For each of the following statements, state whether or not the instruction is valid:
a. mov ax,var1
b. mov ax,var2
c. mov eax,var3
d. mov var2,var3
e. movzx ax,var2
f. movzx var2,al
g. mov ds,ax
h. mov ds,1000h
Explanation / Answer
7. eax = 12341237h
8.
a. mov ax,var1 // not valid
b. mov ax,var2 // Valid
c. mov eax,var3 // not valid
d. mov var2,var3 // not valid
e. movzx ax,var2 // not valid both ax and var2 are same size
f. movzx var2,al // not valid destinatio cannot be memory operand
g. mov ds,ax // valid
h. mov ds,1000h // not valid
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.