Question
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
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 programStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started