Multiply Two numbers in Assembly 8086




.model small
.stack 100h

.data

msg db 0ah,0dh,'THE Multiplication Is=$'

.code

main proc
   
    mov ah,1
    int 21h
   
    mov bl,al
   
    sub bl,30h
   
    mov ah,1
    int 21h
   
    mov cl,al
    sub cl,30h
   
   
    mov ax,@data
    mov ds,ax
    lea dx,msg
    mov ah,9
    int 21h
     
   
   
    mov al,bl 
   
    mul cl
   
    mov dl,al
   
    add dl,30h
   
   
    mov ah,2
    int 21h
   
    main endp
end main




Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment