I have a program, that multiplies two numbers, and all works, but on the screen, I saw this. Can you suggest to me, what to do, so my program printed decimal value (eg. 24) Code:
section .text
global _start
_start:
; 3 x 8
mov ax, 3
mov bl, 8
mul bl
mov [res], al
mov edx,len
mov ecx,msg
int 0x80
mov eax,4
mov ebx,1
mov edx,1
mov ecx,res
int 0x80
mov eax,1
int 0x80
section .data
res db 0
I use NASM Compiler, WSL Ubuntu 18.04, and ld (ld -m elf_i386 -s -o multiply multiply.o)