Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Procedure Part 1: In the first part of the lab, a program should be written that includes an infinite loop (like the previous lab), which

image text in transcribed

Procedure Part 1: In the first part of the lab, a program should be written that includes an infinite loop (like the previous lab), which reads in the value of the pushbuttons (KEY) values. When no pushbutton is pressed, the red LEDs should be completely off. When any button is pressed, all the red LEDs should illuminate. 1) There are many ways to test the value of the pushbuttons, including but not limited to the compare (CMP), test (TST), and test equivalence (TEQ) commands. These each operate in different ways, and would need to be paired with different branch commands to achieve the desired results Students are free to choose which commands they wish to use, and are encouraged to use different commands to gain a better understanding of how the different commands change the status register. For test and comparison commands, the student can either use immediate values in the test/compare command, or load immediate values into a register and then perform the test/compare with only registers. These are functionally equivalent, although using an immediate value in the test/compare command is a bit easier for the student to read 2) 3) When learning how the different commands work, it is wise to set breakpoints in the code, and looking at the values set in the register. For example, setting a breakpoint when the value of the pushbuttons is read and then stepping through the code will be useful in understanding the Procedure Part 1: In the first part of the lab, a program should be written that includes an infinite loop (like the previous lab), which reads in the value of the pushbuttons (KEY) values. When no pushbutton is pressed, the red LEDs should be completely off. When any button is pressed, all the red LEDs should illuminate. 1) There are many ways to test the value of the pushbuttons, including but not limited to the compare (CMP), test (TST), and test equivalence (TEQ) commands. These each operate in different ways, and would need to be paired with different branch commands to achieve the desired results Students are free to choose which commands they wish to use, and are encouraged to use different commands to gain a better understanding of how the different commands change the status register. For test and comparison commands, the student can either use immediate values in the test/compare command, or load immediate values into a register and then perform the test/compare with only registers. These are functionally equivalent, although using an immediate value in the test/compare command is a bit easier for the student to read 2) 3) When learning how the different commands work, it is wise to set breakpoints in the code, and looking at the values set in the register. For example, setting a breakpoint when the value of the pushbuttons is read and then stepping through the code will be useful in understanding the

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

Question Can I collect benefits if I become disabled?

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago