Questions Statement
You have to write a subroutine (assembly language code using NASM) for the following equation.
DX= (AX2 + (AX-1) + 2*(AX+2))/2
Note: 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.