Answer the question
In order to leave comments, you need to log in
Assembler, how is the translation of this code into object code?
ADD AX,BX -> 01 C3
Answer the question
In order to leave comments, you need to log in
And what about the object code?
You have assembly source code and machine code.
The translation is very simple.
We take the table of opcodes and see that the command ADD r16, r16
corresponds to opcodes 01
and 03
. We take any of them.
The second byte is formed from two bits of the Mod mode, for the register-to-register operation this is 11
, and bits with register numbers AX - 000
and BX - 011
. Writing in full, we get 11000011
or C3
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question