Question
Processor Control Instructions Objectives: At the end of the exercise, the students should be able to: Write a program that implements string manipulations; and Demonstrate
Processor Control Instructions
Objectives:
At the end of the exercise, the students should be able to:
Write a program that implements string manipulations; and Demonstrate flag manipulation in an assembly program.
Instructions:
1. Construct a simple assembly language program that would satisfy the following conditions: (6 items x 5 points)
The program must accept either positive or negative input strings in decimal format.
The input string must be typed in by the user during the program execution.
The program must convert the input string into binary form.
The binary form must be displayed on the next line.
The program must continuously ask for an input string from the user.
The program must stop executing when the user key-in zero (0) as an input string. 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, especially the important sections that involve string manipulation and status flag changes, using 4-7 sentences. (10 points)
3. Include in your answer sheet all the assembly language code of your program. Adding comments in the source code editor is highly encouraged. (10 points)
4. Include a screenshot of the output of your program. (5 points)
Processor Control Instructions Objectives: At the end of the exercise, the students should be able to: Write a program that implements string manipulations; and Demonstrate flag manipulation in an assembly program. Instructions: 1. Construct a simple assembly language program that would satisfy the following conditions: (6 items x 5 points) The program must accept either positive or negative input strings in decimal format. The input string must be typed in by the user during the program execution. The program must convert the input string into binary form. The binary form must be displayed on the next line. The program must continuously ask for an input string from the user. The program must stop executing when the user key-in zero (O) as an input string. 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, especially the important sections that involve string manipulation and status flag changes, using 4-7 sentences. (10 points) 3. Include in your answer sheet all the assembly language code of your program. Adding comments in the source code editor is highly encouraged. (10 points) 4. Include a screenshot of the output of your program. (5 points)Step 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