1. Give the op code and number of bytes of code for each of these instructions.
ID: 3814739 • Letter: 1
Question
1. Give the op code and number of bytes of code for each of these instructions.
(k) imul eax, ecx Op Code______ Number of Bytes _____
(l) div value Op Code______ Number of Bytes _____
(assume value references a doubleword in memory)
(m) div DWORD PTR [edx] Op Code______ Number of Bytes _____
(n) cdq Op Code______ Number of Bytes _____
Explanation / Answer
k. opcode : IMUL and number of bytes = 2 (Signed multiplication)
i. opcode : DIV and number of bytes = 2 (1 for quotient and another for reminder)
m. opcode : DIV and number of bytes = 2
n.opcode : CDQ and number of bytes = 4 (converts double to quad)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.