Answer the question
In order to leave comments, you need to log in
I deal with multiplication in assembler, why does it work this way, but not like that?
Here, as expected in dx : ax is written the correct result of the multiplication. Code 16 bit
use16
mov ax,3h
mov bx,4h
mul bx
use32
mov ax,3h
mov bx,4h
mul bx
Answer the question
In order to leave comments, you need to log in
If you switch to 32 bits, then you already need to operate with the eax and ebx registers:
mov eax,3h
mov ebx,4h
mul ebx
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question