An assembly language program

Write an assembly language program which takes two integers, A and B, and computes the following expressions. You must use the same variables for A andB throughout all three expressions. Using GNU Assembler x86 AT&T Syntax. Include a MakeFile and document all code.

1) A * 5

2) (A + B) – (A / B)

3) (A – B) + (A * B)

Sample Solution