166k views
4 votes
Compose a loop program to examine the eight bytes in the words y and z. If a byte is the code for a decimal number, output it to the console. Otherwise, simply ignore it and examine the next byte. The program must be a loop. That means that you must write a loop that will execute eight times to examine each byte, output if necessary, and continue. End the program as usual with a syscall 10. After completing the program answer this question: What numbers are output? Note: You do NOT have to load a word and partition off each byre, to be able to test it. There is an easier way. Think about it!

1 Answer

5 votes

Answer:

See explaination

Step-by-step explanation:

A loop program is a type of program that supports iteration.

It is a conditional statement ptogram that produces its result after a series of iteration or repetition from one loop to the other.

Please go to attachment for the loop program that examines the eight bytes in the words y and z. If a byte is the code for a decimal number, output it to the console. Otherwise, simply ignore it and examine the next byte.

Compose a loop program to examine the eight bytes in the words y and z. If a byte-example-1
User Jeff Sharp
by
4.2k points