Question: I need help with these question for assembly 32 bit and please be basic not advance Write a program to read two numbers and print
I need help with these question for assembly 32 bit and please be basic not advance


Write a program to read two numbers and print the smaller one. Example run Enter frst number: 27 Enter Sand numer: 111 Smaller - 10 Discussion: To read a number from the board we use the author's routine, Hadith cull de nun, XX To write a number to the screen we use the author's routine KyiteDEO ; Prinlun HD , RAX, num call at Dec 1:: boolean-expression HEX/ENDIE I coolexp bcolexy in Bop Label 1 True Statement ; ENDIY Note: The belep (Beclean espression) would have a logical expression using the Barators (-. The Bep" would mean that we want to jump if the condition is false. If the expression was '* > 3'then the op code would be worn ------------------- rample IP hex label! 1 10: BEX, digada Print "Sot a valid digi call testing latel: Note: to be successful in writing the correct code, think about how the IF is supposed to work in this example the print is executed if the condition is true. If it is false the jump is to the lacell or the ZDI2. The JNA says to jump if the chy does not cve us an above results. 1 :: boolcan expression: IREN/ELSE/ENDIZ bcolexy | I boolexp : : 37T - CUTE net Eagles cerator Note: If the carpis false we jump to labell JELSE). If It is true then we tail into the then and jump JNE) over the ELSE. The JMP is an unconditional jump. It is important when learning that you urte rode that makes sense to you. The following is wrother way to write the same thing THEN TROELSE THEN SI? ELSE: TNITY: Note: the THEN and ELSE act the same asja ELSE Se the problem with burst. Output: larger num Input: numi and num2 Processing determine which is smaller Therefore, the pseudocode would be: ; Input ; Per second hal has ; Tmn hun ; Print "llur - ". Hur 1 1 Print "inaller ; ENDI ; stog Use this solution to solve the problem. Use the following data definitions data 1Hws ' 1112 anal Mag mul TIY"rter Finnur 3 BYDE "EL : ", G BYDE "Snal. =D BYDE? Write a program to read two numbers and print the smaller one. Example run Enter frst number: 27 Enter Sand numer: 111 Smaller - 10 Discussion: To read a number from the board we use the author's routine, Hadith cull de nun, XX To write a number to the screen we use the author's routine KyiteDEO ; Prinlun HD , RAX, num call at Dec 1:: boolean-expression HEX/ENDIE I coolexp bcolexy in Bop Label 1 True Statement ; ENDIY Note: The belep (Beclean espression) would have a logical expression using the Barators (-. The Bep" would mean that we want to jump if the condition is false. If the expression was '* > 3'then the op code would be worn ------------------- rample IP hex label! 1 10: BEX, digada Print "Sot a valid digi call testing latel: Note: to be successful in writing the correct code, think about how the IF is supposed to work in this example the print is executed if the condition is true. If it is false the jump is to the lacell or the ZDI2. The JNA says to jump if the chy does not cve us an above results. 1 :: boolcan expression: IREN/ELSE/ENDIZ bcolexy | I boolexp : : 37T - CUTE net Eagles cerator Note: If the carpis false we jump to labell JELSE). If It is true then we tail into the then and jump JNE) over the ELSE. The JMP is an unconditional jump. It is important when learning that you urte rode that makes sense to you. The following is wrother way to write the same thing THEN TROELSE THEN SI? ELSE: TNITY: Note: the THEN and ELSE act the same asja ELSE Se the problem with burst. Output: larger num Input: numi and num2 Processing determine which is smaller Therefore, the pseudocode would be: ; Input ; Per second hal has ; Tmn hun ; Print "llur - ". Hur 1 1 Print "inaller ; ENDI ; stog Use this solution to solve the problem. Use the following data definitions data 1Hws ' 1112 anal Mag mul TIY"rter Finnur 3 BYDE "EL : ", G BYDE "Snal. =D BYDE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
