1 1 Write a piece of code that multiply two numbers and save
#1
1, Write a piece of code that multiply two numbers and save the results in address 0x500 and 0x501 using big endian.(3pts)Solution
MOV AX,4E8E %INITIALIZATION OF DATA Segment
MOV DS,AX
MOV AX,[0000] %Move the Data in[0000] address
MOV BX,[0002]%Move the data in [0002]address
MUL BX; %Multiply the datas in AX and BX reg
MOV AX,[0500] % Move the lower 16 bit part to [0500] address
MOV DX,[0501]%Move the Upper 16 bit part to [0501] Address
%in this code its assume the processor will store the resul of 16 bit multiplication lower 16bit nibble to AX, and %Upper nipple to DX reg
