Question: 6.3 Describe, step by step, wilat 6.4 ve, step by step, what the Little Man does to execute a 6.5 Extend the simple program shown
6.3 Describe, step by step, wilat 6.4 ve, step by step, what the Little Man does to execute a 6.5 Extend the simple program shown in Section 6.3 to accen "INPUT nstruction add them, and output the result. If a user wants to enter two numbers. what mnst the ittla ri uo betore nd numher? Whv? FIGURE 6.2 Program to Add Two Numbers Note that there is no specifhc Teasn to save number If we were gning to perform wine operation required the reuse of the second nourbes. it conuild be s 00 901 399 901 199 INPUT STORE DATA INPUT 2ND ADD 1ST # TO IT to perform the addition.The result is, of course OUTPUT 902 04 902 OUTPUT RESULT 05 000 STOFP All that remains is for us to have the Little M the result to the out basket. DATA COFFEE BREAK 000 The program is complete, so we allow to take a rest. These instructions are stored sequentially starting from malb Little Man will retrieve and execute them one at a time, in o is reshown in Figure 6.2 Since we were careful to locate the data outside the progra simply by telling the Little Man to begin again. 84 AN EXTENDED INSTRUCTION SET dehned must always be exe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
