You have to write a subroutine (assembly language code using NASM) for the following equation.
dx=AX2+(AX-1)+2*(AX+2)/2
You cannot use MUL or DIV instructions, you have to perform multiplication and division (if required) using shift operations. AX and DX are the general purpose registers.