Im new to assembly trying to figure arithmetic problems. How do u add, sub, mul, or div in assembly? preferable would like an example of all by chance and what does int 21h mean?
section .bss
num resb 2
number resb 2
product resb 2
section .text
global _start
_start:
mov eax,3
mov ebx,0
mov ecx,num
mov edx,2
int 80h
mov eax,3
mov ebx,0
mov ecx,number
mov edx,2
int 80h
mov al, [num]
mov bl, [number]
mul bl
mov [product], ax
mov eax,4
mov ebx,1
mov ecx,product
mov edx,2
int 80h
mov eax,1
mov ebx,0
int 80h;