Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Procedural and Loop Instructions Objectives: At the end of the exercise, the students should be able to: Write a simple program that uses a procedural

image text in transcribed

Procedural and Loop Instructions

Objectives:

At the end of the exercise, the students should be able to:

Write a simple program that uses a procedural call.

. Demonstrate jump instructions via flag conditions and compare instructions.

Instructions:

1. Construct a simple assembly language program that would satisfy the following conditions: (6 items x 5 points)

The program should accept a single-digit input, from 0 to 9.

Compare the single-digit input to 5.

Prompt the user whether the input is below, equal, or above the value 5.

Utilize compare and jump instructions.

The program should contain at least one (1) procedure that is called and executed.

Add comments in the important sections/code segments of your program. Note: It is highly recommended to use the Emu8086 Emulator in writing the program. If the emulator is currently not available,

you may utilize any online assembler/compiler/emulator, as long as your program satisfies the six (6) conditions stated above. The instruction set of online assemblers/compilers/emulators may vary

2. Explain the structure of your program using 4-7 sentences. (10 points)

234 3. Include a screenshot of the output of your program. (10 points)

4. Include in your answer sheet all the assembly language code of your program.

Procedural and Loop Instructions Objectives: At the end of the exercise, the students should be able to: Write a simple program that uses a procedural call. Demonstrate jump instructions via flag conditions and compare instructions. Instructions: 1. Construct a simple assembly language program that would satisfy the following conditions: (6 items x 5 points) The program should accept a single-digit input, from 0 to 9. Compare the single-digit input to 5. Prompt the user whether the input is below, equal, or above the value 5. Utilize compare and jump instructions. The program should contain at least one (1) procedure that is called and executed. Add comments in the important sections/code segments of your program. Note: It is highly recommended to use the Emu8086 Emulator in writing the program. If the emulator is currently not available, you may utilize any online assembler/compiler/emulator, as long as your program satisfies the six (6) conditions stated above. The instruction set of online assemblers/compilers/emulators may vary. 2. Explain the structure of your program using 4-7 sentences. (10 points) 3. Include a screenshot of the output of your program. (10 points) 4. Include in your answer sheet all the assembly language code of your program

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

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

Does it avoid use of underlining?

Answered: 1 week ago