Question: Write the assembly program using emulator 8086 for the algorithm presented below. Algorithm: int left, right; char oper; Print Enter First number; Read left; Print

Write the assembly program using emulator 8086 for the algorithm presented below. Algorithm: int left, right; char oper; Print "Enter First number"; Read left; Print "Enter Second number "; Read right; Print "Enter Operation: (operations allowed are +','',*', or V) only"; Read oper; switch (oper) { case '+' : Print "Result = ", Print left + right; break; case '-' : Print "Result = Print left right; break; case '*' : Print "Result = ", Print left * tight; break; case '/' : Print "Result = ", Print left / right; break; default: Print "Illegal operation"; 11 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
