Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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 0x20000000 R1 R2 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 Task 1: Code with comments Screenshot of the memory before executing and after executing test 1 branch Screenshot of the memory before executing and after executing test 2 branch Fill up table 1 Task 2: Code with comments Screenshot of the memory before executing and after executing test 1 branch Screenshot of the memory before executing and after executing test 2 branch Flowchart Fill up table 2 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 0x20000000 R1 R2 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 Task 1: Code with comments Screenshot of the memory before executing and after executing test 1 branch Screenshot of the memory before executing and after executing test 2 branch Fill up table 1 Task 2: Code with comments Screenshot of the memory before executing and after executing test 1 branch Screenshot of the memory before executing and after executing test 2 branch Flowchart Fill up table 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

Design a training session to maximize learning. page 296

Answered: 1 week ago

Question

Design a cross-cultural preparation program. page 300

Answered: 1 week ago