I work in emulator emu8086. After I execute the mul
command, I get the result in the dx:ax registers. How can I display the result?
I used an array, but I don't like this output format.
mov ax, 13
mul x2
mov cx, ax ; 13x^2
mov ax, 26
mul x ; 26x
sub cx, ax ; 13x^2 - 26x
mov ax, 123 ; 123
add ax, cx ; 13x^2 - 26x + 123
mul ax ; (13x^2 - 26x + 123)^2
mov otvet[2], ax
mov otvet[0], dx