Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

code in 32-bit assembly language x86 please. Write a program to read two numbers and print the smaller one. Example run: Enter first number: 27

code in 32-bit assembly language x86 please. image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Write a program to read two numbers and print the smaller one. Example run: Enter first number: 27 Enter second number: 10 Smaller = 10 Discussion: To read a number from the keyboard we use the author's routine, ReadDec. call ReadDec mov numl, EAX ; Input Num1 To write a number to the screen we use the author's routine WriteDEC. mov EAX, numi ; Print num! ; Input Numi call ReadDec mov numl, EAX To write a number to the screen we use the author's routine WriteDEC. 1 Print numi mov EAX, numi call WriteDec :if boolean-expression THEN/ENDIE cmp boolexp jnBop Labeli ; IF boolexp True Statement Labell: + EDIF Note: The boolexp (Boolean expression) would have a logical expression using the Boolean operators > B" then the op code would be "ng" or "na". Solve the problem with pseudocode first. Output: Larger num Input: numi and num2 Processing: determine which is smaller Therefore, the pseudocode would be: ; Start ; Print "Enter first number: ; Input numi ; Print "Enter second number: " ; Input num2 ; IF numl

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago