write assembly (ASM) and C programs for the HCS12, as well as to work with the pushbuttons and 7-segment display on the Dragon12-JR board. The programs find the largest and smallest numbers from an arbitrary list of eight 8-bit unsigned numbers and displays them on the 7-segment display as outlined in the following.
1.Write a program to do the following, in both ASM and C. Do not use MINA, MINM, MAXA, and MAXM instructions.
1.Load an array of eight 8-bit unsigned numbers into RAM.
2.Find the largest of these numbers and store it.
3.Find the smallest of these numbers and store it.
4.Wait for the pushbuttons (S1 or S2) to be pressed.
5.The first time S1 is pressed, display the high nibble of the largest number; the second time S1 is pressed, display the low nibble of the largest number. For example, if the largest number is 0x3F, the 7-segment display should show “3” the first time S1 is pressed and “F” the second time it is pressed.
6.Do the same for S2, except use the smallest number.
2.Explain why debouncing is used with switches. Optional: Implement software debouncing for switch used above.
Original Attachment has been moved to: assem-#-what-required.txt.zip
Original Attachment has been moved to: C-required.txt.zip
Thank you for your post!
Since this is a useful information rather than a question/issue, i have converted it to a document: