Question: Reading RIEn 306 Lab 4 Spring 20 the Screen from the keyboard and writing to Lab 3 demonstrated how information be written to to the
Reading RIEn 306 Lab 4 Spring 20 the Screen from the keyboard and writing to Lab 3 demonstrated how information be written to to the In Lab goal is can writing Int reading from the keyboard and to 16 the keyboard operation (or The following services performed depending on the value in the AH register o Read the next character from the keyboard 1 eport whether or not a character is ready 2 Get shift status A program to get a character from the keyboard (without testing if a character is ready) and place that character in location 400 is as follows: SUB AH, AH INT 16H MOV (400) ,AL INT 20H I. Write and demonstrate programs as follows A. Read a character from the keyboard and place the results in address 400 After the program has been executed examine memory location 400 for confirmation. B. Read your name from the keyboard and place the letters in consecutive locations starting at address 400 Examine memory for confirmation. Hint: Two of the instructions should be MOV [BX] ,AL and INC BX. C. Add to part B so that your name will be printed on the screen as follows: 1. Write each character immediately as you type it (Use the previous experiment (See reference program on next page 2. Place a period after your name and have the computer print your entire name when it sees the period. Use the compare instruction (See reference program on next page. D. Have the computer read several numbers from the keyboard followed by the closed parentheses symbol The numbers are to be printed to the screen when a is found. You will again use the compare instruction. II. Discuss the Results of each programming exercise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
