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.

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.

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site