Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 2 Assembly language programming: [50] Write a program in assembly language to read a number entered by the user. The program should display
Question 2 Assembly language programming: [50] Write a program in assembly language to read a number entered by the user. The program should display an enlarged version of a given number on the screen. The program should do the following: Clear the screen and change the screen colour to yellow on blue. Change the cursor position to row 10, column 0. 4 COS2621/103/0/2023 Prompt the user to key in an upper case letter (A - E). Read the letter from the keyboard. Test whether the number is in range (A,..., E). Display an error message if the letter is out of range and terminate the program. Display an enlarged version of the letter on the screen. Example: If the user enters B, the following pattern is displayed: Enlarged letter Bit pattern Hex number Line number $$$$ 11110 1E $ $ 10001 11 $ $ 10001 11 $$$$ 11110 1E $ $ 10001 11 $ $ 10001 11 $$$$ 11110 1E 1234565 7 Define a bit pattern for each letter and use this pattern to display the individual lines: For eample: For the letter 'B' displayed above you should define a string of 7 hex numbers, one hex number for each line. To display the first line, step through the bit pattern, displaying a space if the bit is equal to zero and displaying a '$' otherwise. Write a carriage return and line feed to the screen and move to the pattern for the next line. Display all 7 lines of the enlarged number. Terminate the program. The first line in your program should be a comment line in which your student number and name are stated. NB: You need to submit three screen shots of different test runs performed. Marks will be allocated as follows: Clearing the screen, changing the screen colour and setting the cursor position Displaying the user prompt Reading the letter (ASCII character) Testing the range and displaying an error message if the letter is out of range Definition of bit patterns Displaying the lines corresponding to the bit pattern of the letter entered A program listing submitted Three screen shots of test cases submitted (3 5) The program structure The program documentation (comments) (3) (1) (2) (3) (5) (6) (5) (15) (5)
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