Question: 4-7 Use the following data definitions to answer this question: .Data Num1 DW 100 Num2 DB 225 Char1 DB Y Num3 DD 0 Identify whether
4-7 Use the following data definitions to answer this question: .Data Num1 DW 100 Num2 DB 225 Char1 DB Y Num3 DD 0 Identify whether the following instructions are legal or illegal. Explain the reason for each illegal instruction.
(a) mov EAX,EBX (b) mov EAX,num2 (c) mov BL, num1 (d) mov DH, char1 (e) mov char1,num2 (f) mov IP,num1 (g) add 75,EAX (h) cmp 75, EAX (i) sub char1,A (j) xchg AL,num2 (k) xchg AL,23 (l) inc num3
4-8 Assume that the registers are initialized to EAX = 12345D, EBX = 9528D, ECX = -1275D, EDX = -3001D
What is the destination operand value (in hex) after executing the following instructions: (Note: Assume that the four registers are initialized as shown above for each question.) (a) add EAX, EBX (b) sub AX, CX (c) and EAX, EDX (d) or BX, AX (e) not EDX (f) shl BX, 2 (g) shl EAX, CL (h) shr BX, 2 (i) shr EAX, CL (j) sub CX, BX (k) add ECX, EDX (l) sub DX, CX
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
