1. Give the op code and number of bytes of code for each of these instructions.
ID: 3814738 • Letter: 1
Question
1. Give the op code and number of bytes of code for each of these instructions. 28 points
(f) inc DWORD PTR [edx] Op Code______ Number of Bytes _____
(g) neg value Op Code______ Number of Bytes _____
(assume value references a doubleword in memory)
(h) neg edx Op Code______ Number of Bytes _____
(i) neg DWORD PTR [edx] Op Code______ Number of Bytes _____
(j) add ecx, 894 Op Code______ Number of Bytes _____
Explanation / Answer
Following are the answers:
(f) inc DWORD PTR [edx] Op Code INC Number of Bytes = 1
(g) neg value Op Code NEG Number of Bytes = 2
(assume value references a doubleword in memory)
(h) neg edx Op Code NEG Number of Bytes = 2
(i) neg DWORD PTR [edx] Op Code NEG Number of Bytes = 4
(j) add ecx, 894 Op Code ADD Number of Bytes = 4
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.