125k views
5 votes
Write a procedure named Read10 that reads exactly ten characters from standard input into an array of BYTE named myString. Use the LOOP instruction with indirect addressing, and call the ReadChar procedure from the book's link library. (ReadChar returns its value in AL.)

User Soana
by
4.4k points

1 Answer

3 votes

Answer:

Following are the solution to the given question:

Step-by-step explanation:

Since a procedure has the Read10 parameter, the 10 characters from the input file are stored in the BYTE array as myString. The LOOP instruction, which includes indirect addressing and also the call to the ReadChar method, please find the attached file of the procedure:

Write a procedure named Read10 that reads exactly ten characters from standard input-example-1
User Txtechhelp
by
4.5k points