Saturday, 12 December 2015

Multiplication of two numbers

Write an assembly Language Programming for multiplication of two numbers.


data segment
ends
stack segment
    dw   128  dup(0)
ends
code segment
start:
mov al,24
mov bl,20
mul bl    ;multiplication store al,bl to ax
mov dx,ax ;we can see multiplication from dx 
mov ax, 4c00h
int 21h 
ends
end start


No comments:

Post a Comment