Question: 2. TASK-1: If-Then-Else Statement using BEQ Edit, assemble and step through the program in the lab introduction. Use two sets of test data using the
2. TASK-1: If-Then-Else Statement using BEQ Edit, assemble and step through the program in the lab introduction. Use two sets of test data using the Keil MDK simulator and verify that the program is giving the correct results. Then load the program on the board and fill in the following table. The first test should be for a value of X1=1 and the second test is for X1=0. Take screenshots for the memory before and after. Table 1 Memory Contents Before Testing After Testing 0x20000000 R1 R2 0x20000000 R1 R2 Test 1 Test 2 3. TASK-2: If-Then-Else Statement using BNE Modify the program in Task 1 above by using the BNE instruction. Edit, assemble and step through the program as you did in Task 1. Fill in the following table and draw the new program flowchart. Take screenshots for the memory before and after. Table 2 Memory Contents Before Testing 0x20000000 R1 After Testing 0x20000000 R1 R2 R2 Test 1 Test 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
