Question: Q1: Write an assembly program that will compare three different numbers a, b and c and put the maximum number in MAX. Where ( a,b,c

 Q1: Write an assembly program that will compare three different numbers

Q1: Write an assembly program that will compare three different numbers a, b and c and put the maximum number in MAX. Where ( a,b,c and MAX) defined as words with the following values: a=5, b=10,c=15 .MODEL SMALL DATA A dw 5 B dw 10 C dw 15 MAX dw? .CODE START: MOVAX,@DATA MOV DS,AX MOV AX,A MOV BX,B MOV CX,C CMP AX,BX JG X CMP BX,CX JG Y Z: MOV MAX,CX JMP e X:CMPAX,CX JG X1 JMP Z XI: MOV MAX,AX JMP e Y: MOV MAX,BX e: END START END

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!