write a program that perform y3x3 7x210x11 in assembly langu
write a program that perform y=3x^3 +7x^2+10x-11 in assembly language
Solution
assuming X=4-bit
ORG 100h
MOV AL,X
MOV BL,AL
MUL BL
MOV CL,AL %X^
MUL CL
MOV DL,AL % X^3
MUL 3
MOV AH,AL % 3X^3
MOV AL,CL
MUL 7
MOV BH,AL %7X^2
MOV AL,BL
MUL 10
MOV CH,AL %10X
MOV AL,AH
ADD AL,BH %3X^3+7X^2
ADD AL,CH % 3X^3+7X^2+10X
SUB AL,11 % 3X^3+7X^2+10X-11
RET
