X Y are two hexadecimal numbers 16bit Write an assembly pro
X & Y are two hexadecimal numbers [16-bit]. Write an assembly program for IA-32 to find their multiplication without using any multiplication instructions. X and Y are two[16-bit] hexadecimal numbers [X > Y>0]. Write a assembly program for IA-32 program to find their division without using any division instructions.![X & Y are two hexadecimal numbers [16-bit]. Write an assembly program for IA-32 to find their multiplication without using any multiplication instructions. X & Y are two hexadecimal numbers [16-bit]. Write an assembly program for IA-32 to find their multiplication without using any multiplication instructions.](/WebImages/19/x-y-are-two-hexadecimal-numbers-16bit-write-an-assembly-pro-1039988-1761540074-0.webp)
Solution
Answer
2.
.data
a dw <>
b dw <>
.code
mov ax, @data
mov ds, ax
mov ah, 0
mov al, a
mov bl, b
loop: add al, al
addi ah,1
jne ah, bl, loop
mov dl, al
int 21H
end
3.
.data
a dw <>
b dw <>
.code
mov ax, @data
mov ds, ax
mov ah, 0
mov al, a
mov bl, b
loop: sub al, bl
addi ah,1
jnz al, loop
mov dl, ah
int 21H
end
![X & Y are two hexadecimal numbers [16-bit]. Write an assembly program for IA-32 to find their multiplication without using any multiplication instructions. X & Y are two hexadecimal numbers [16-bit]. Write an assembly program for IA-32 to find their multiplication without using any multiplication instructions.](/WebImages/19/x-y-are-two-hexadecimal-numbers-16bit-write-an-assembly-pro-1039988-1761540074-0.webp)
![X & Y are two hexadecimal numbers [16-bit]. Write an assembly program for IA-32 to find their multiplication without using any multiplication instructions. X & Y are two hexadecimal numbers [16-bit]. Write an assembly program for IA-32 to find their multiplication without using any multiplication instructions.](/WebImages/19/x-y-are-two-hexadecimal-numbers-16bit-write-an-assembly-pro-1039988-1761540074-1.webp)