Question: Write a function which, for a word size ( 8 - dgit hexadecimal ) number passed in r 2 , separates and stores each digit

Write a function which, for a word size (8-dgit hexadecimal) number passed in r 2, separates and stores each digit of the hex number in a memory the starting address of which is passed in r 3, highest digit in the lowest address.
Write a function which, for a given decimal number (0-9) passed in r 2, generates and returns in r 0 a number whose bit pattern with '1's forms a bar (made by '1') chart-like shape with the count of bars the same as the decimal number. Example is provided below.
Use the lookup table approach.
Input r2 Output r0[in binary representation]
10x000000010b00000000000000000000000000000001
30x000000070b00000000000000000000000000000111
70x0000007F 0b00000000000000000000000001111111
3. Write a complete code which displays a bar chart (as explained in 2 above) for each digit of your Howard ID (003032412), calling above 2 functions and, in order to see the changes in the LED pattern, the 1 sec -delay function.
NUMBER 2 HAS AN EXAMPLE USE THE LOOKUP TABLE APPTOACH
(i) write a code for number 3 which includes number 1 and number 2 as funtions in it.
(ii) add comments which sufficiently explain your coding design, allocatiob of registar to variables, etc.
Write a function which, for a word size ( 8 -

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!