Answer to Question #335449 in UNIX/Linux Programming for Secret Agent

Question #335449

Create an Assembly Language Program with the following arithmetic operations.

a.) 2+2-3+1*2-2 = 2

b.) 5-1*2+1-7*2 = 4


1
Expert's answer
2022-05-01T19:06:41-0400

а)

mov ax, 2

add ax, 2

sub ax, 3

add ax, 1

mul ax, 2

sub ax, 2

b)

mov ax, 5

sub ax, 1

mul ax, 2

add ax, 1

sub ax, 7

mul ax, 2


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS