1. Give the op code and number of bytes of code for each of these instructions.
ID: 3814737 • Letter: 1
Question
1. Give the op code and number of bytes of code for each of these instructions. 28 points
(a) mov ecx, 984 Op Code______ Number of Bytes _____
(b) xchg eax, ecx Op Code______ Number of Bytes _____
(c) add eax, ecx Op Code______ Number of Bytes _____
(d) add eax, value Op Code______ Number of Bytes _____
(assume value references a doubleword in memory)
(e) inc edx Op Code______ Number of Bytes _____
Explanation / Answer
Following is the solution of the question asked:
(a) mov ecx, 984 Op Code MOV Number of Bytes= 1
(b) xchg eax, ecx Op Code XCHG Number of Bytes = 1
(c) add eax, ecx Op Code ADD Number of Bytes = 1
(d) add eax, value Op Code ADD Number of Bytes = 1
(assume value references a doubleword in memory)
(e) inc edx Op Code INC Number of Bytes = 1
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.