I am currently taking a low-level programming class and unfortunately, I cannot find this information in our text book (most of the questions are not contained in our text). I am having a hard time determining how to solve these. There is no information as to "CPU or anything along those lines". The question is as follows:
Give the op code and number of bytes of code for each of these instructions.
(a) mov exc, 984 Op Code_____ Number of Bytes_____
(b) xchg eax, ecx Op Code_____ Number of Bytes_____
There are a lot more, but if anyone could help me understand how to do these two, I hope to be able to translate that to the other questions.
One thing I tried, but not sure what I am seeing: I created a small *.asm project in Visual Studio 2019 and added that one line of code in (a) and looked at the listing file. I see it shows the following:
00000000 B9 000003D8 mov ecx, 984
I am not sure if the information is to be found here and I am just missing it, or there is some other way to figure this out.