Question: 6 Post Lab Questions 1. Briefly explain what the overall purpose of this program is and complete the memory table below which should show what
6 Post Lab Questions 1. Briefly explain what the overall purpose of this program is and complete the memory table below which should show what is in has been run (eg. Purpose: finds largest of five numbers) memory after the program ORG $1000 TABLE DCB S18, S39, SE1, S8B, S15 ORG $2000 LDX #TABLE LDAB #5 LDAA 0, X LOOP INX DBNE B, LOOP BRA $1000 S1001 $1002 S1003 S1004 $1005 S1006 S1007 $1008 1009 2. Assuming you have the same data section as in the above, write a pro- gram that adds 1 to each of the five numbers in memory. This must be done using a program loop. 3. What is the difference between "For", "While and "Do While loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
