SYST26671 Emulator Assemly Language Assignment
Question 1: Write an 8086 assembler program that will perform the following calculations without using stack. 8 * (4 + 10) + (20 / 5 - 2) 1. Your program must place the answer in the AX register. 2. Then display your answer on the emulator screen. Please write the source code in the space given below and attach the .ASM emulator file. You can copy/paste the code from the emulator. Question 2: Write a program to find if the number entered by user is even or odd. Please take a byte as an input from the user. And display the output message on the screen if the number is even or odd. Please write the source code in the space given below and attach the .ASM emulator file. You can copy/paste the code from the emulator. Question 3: Write a program using procedures to display "good morning", "good day" and "good evening" message depending on the time entered by the user. If user enters: • hour of the day 10 or less, it should display "Good Morning" • hour of the day 20 or less, it should display "Good Day" • hour of the day more than 20, it should display "Good Evening" The input number entered by the user should be in hours only. Do not enter minutes. Input should be 24 hrs. format and should not be more than 23. Please write the source code in the space given below and attach the .ASM emulator file. You can copy/paste the code from the emulator. Sample Run 1: Please enter time in 24 hr format: 16 Good Day! Sample Run 2: Please enter time in 24 hr format: 9 Good Morning! Question 4: Write an assembly language program to display uppercase A-Z and lowercase a-z in the video memory. Font color of the output should be yellow color on a black background color. Please write the source code in the space given below and attach the .ASM emulator file. You can copy/paste the code from the emulator. Question 5: Write a program to find sum and average of three 8-bit numbers using procedures. Take all three inputs from the user and then display the sum and the average of three numbers. Please write the source code in the space given below and attach the .ASM emulator file. You can copy/paste the code from the emulator. Output:See the attached document for the output