Question: ASSEMBLY LANGUAGE Answer should be ASSEMBLY LANGUAGE CODE ONLY! Write a program using author's routines, ReadDec and WriteDec, to read two numbers and print the

ASSEMBLY LANGUAGE

Answer should be ASSEMBLY LANGUAGE CODE ONLY!

ASSEMBLY LANGUAGE Answer should be ASSEMBLY LANGUAGE CODE ONLY! Write a program

Write a program using author's routines, ReadDec and WriteDec, to read two numbers and print the larger one. Enter first number: 27 Enter second number: 10 Larger = 27 To read a number from the keyboard we use the author's routine, ReadDec. call ReadDec; Input Num1 mov num1, EAX To write a number to the screen we use the author's routine WriteDec. mov EAX, num1; Print num1; if boolean-expression THEN/ENDIF cmp boolexp; IF boolexp jnBop Label1 ....; THEN True Statement Label1:;ENDIF; if boolean-expression t THEN/ELSE/ENDIF cmp boolexp; IF boolexp jnBop Label1 ....; THEN True Statement jmp Label2 Label1: ....; ELSE False Statement Label2:; ENDIF Use the following data definitions: .data num1Msg BYTE "Enter first digit: ", 0 num2Msg BYTE "Enter second digit: ", 0 largeMsg BYTE "Larger = ", 0 num1 BYTE ? num2 BYTE ? Write a program using author's routines, ReadDec and WriteDec, to read two numbers and print the larger one. Enter first number: 27 Enter second number: 10 Larger = 27 To read a number from the keyboard we use the author's routine, ReadDec. call ReadDec; Input Num1 mov num1, EAX To write a number to the screen we use the author's routine WriteDec. mov EAX, num1; Print num1; if boolean-expression THEN/ENDIF cmp boolexp; IF boolexp jnBop Label1 ....; THEN True Statement Label1:;ENDIF; if boolean-expression t THEN/ELSE/ENDIF cmp boolexp; IF boolexp jnBop Label1 ....; THEN True Statement jmp Label2 Label1: ....; ELSE False Statement Label2:; ENDIF Use the following data definitions: .data num1Msg BYTE "Enter first digit: ", 0 num2Msg BYTE "Enter second digit: ", 0 largeMsg BYTE "Larger = ", 0 num1 BYTE ? num2 BYTE

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!