Question
1. What is the value of AL after executing the following statements? .data val1 BYTE 10h,20h,30h .code mov esi,OFFSET val1 mov al,[esi] inc esi mov
1. What is the value of AL after executing the following statements? .data val1 BYTE 10h,20h,30h .code mov esi,OFFSET val1 mov al,[esi] inc esi mov al,[esi] a) 10h b) 20h c) 30h d) None of the above
2. What are the values of AX and ZF (Zero Flag) after executing the following statements? mov ax,0FFFFh inc ax a) AX = 0, ZF = 0 b) AX = 0, ZF = 1 c) AX = 1, ZF = 0 d) AX = 1, ZF = 1
3. What are the values of AX and ZF (Zero Flag) after executing the following statements? mov ax,0FFFFh inc ax inc ax a) AX = 0, ZF = 0 b) AX = 0, ZF = 1 c) AX = 1, ZF = 0 d) AX = 1, ZF = 1
4. What is the value of CX after executing the two statements below? mov cx,0 sub cx,1 a) 1 b) 0 c) -1 d) None of the above
5. What is the value of SF (Sign Flag) after executing the two statements below? mov cx,0 sub cx,1 a) 1 b) 0 c) -1 d) None of the above
6. Which is the value of ecx? .data byte1 BYTE 10,20,30 array1 WORD 30 DUP(?),0,0 array2 WORD 5 DUP(3 DUP(?)) .code mov ecx, SIZEOF array1 a) 30 b) 32 c) 64 d) None of the above
7. Which is the value of ecx? .data byte1 BYTE 10,20,30 array1 WORD 30 DUP(?),0,0 array2 WORD 5 DUP(3 DUP(?)) .code mov ecx, SIZEOF byte1 a) 3 b) 6 c) 10 d) None of the above 8. What is the value of the expression (LENGTHOF array2)? .data byte1 BYTE 10,20,30 array1 WORD 30 DUP(?),0,0 array2 WORD 5 DUP(3 DUP(?)) a) 3 b) 5 c) 15 d) None of the above
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started