3. (20) Write an ARM assembly language code segment that will input a three-bit binary variable x. Use port B for your input port. This variable is associated with the lower three bits of the port (bits 0-2); whereas the upper five, (bits 3-7) are unaccounted for, and will float to an unknown value. You must account for this in your code. Once the port is read and masked appropriately it will then pass this value into the function: f(x) x+5x +4 Following the computation, it will output the binary result to port C. The program will continuously monitor (poll) the input port and update the output port accordingly. Write a flow chart and assembly language program using indirect addressing mode instructions (pointers) for input and output, and arithmetic instructions to solve the problem. You do not need to set up the ports (DDR, Clock, etc.); simply use them as you can assume that they have been taken care of beforehand using a device driver routine. You should refer to the 8-bit ports as PORTB and PORTC in your program. 3. (20) Write an ARM assembly language code segment that will input a three-bit binary variable x. Use port B for your input port. This variable is associated with the lower three bits of the port (bits 0-2); whereas the upper five, (bits 3-7) are unaccounted for, and will float to an unknown value. You must account for this in your code. Once the port is read and masked appropriately it will then pass this value into the function: f(x) x+5x +4 Following the computation, it will output the binary result to port C. The program will continuously monitor (poll) the input port and update the output port accordingly. Write a flow chart and assembly language program using indirect addressing mode instructions (pointers) for input and output, and arithmetic instructions to solve the problem. You do not need to set up the ports (DDR, Clock, etc.); simply use them as you can assume that they have been taken care of beforehand using a device driver routine. You should refer to the 8-bit ports as PORTB and PORTC in your program