Question: Write a program in PLP assembly that repeatedly reads the value of the switches (address: 0xf0100000) and displays a pattern on the LED array based
Write a program in PLP assembly that repeatedly reads the value of the switches (address: 0xf0100000) and displays a pattern on the LED array based on what switches. Each time the switch value is read, the pattern should be displayed regardless of whether the switch value has changed or not since the last time it was read. The table below indicates the pattern that should be displayed for each possible switch setting:
Logical shifts are not required, but they should make your program shorter and
more readable than hard coding every value to be written to the LEDs. Shifts can also be helpful when
determining the switch value.

ecimal Binary Switch LED Pattern Switch Number 0 1 Hexad Switch Value 0xe0000001 0b00000001 Turn all 8 LEDs on and then off 0x000002 0b00000010 Turn all even numbered LEDs on and Value then off 2 0x000000040beeee0100 Turn all odd numbered LEDs on and then off exeeeeeee8 beeee10Cycle through all 8 LEDs in order with only one LED on at a time (a marquee) Other Other Othe All LEDs off
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
