I am trying to multiply two integers and then converting them to ascii and then printing. The code compiles fine and no errors are given but nothing shows on screen.
section .text
global _start
_start:
;to print a number after multiplication
mov eax, x
mov ebx, y
MUL ebx
ADD eax, '0' ;convert product to ascii
mov [mynum], eax
mov ecx, mynum
mov edx, 1
mov ebx, 1
mov eax, 4
int 0x80
mov eax, 1
mov ebx, 0
int 0x80
section .data
x dd 2
y dd 3
segment .bss
mynum resd 1
Thank you for helping!
EDIT: When I remove the interrupt on line 10, a zero is now printed to the terminal