2. Write a program to use a subroutine to find the sum of the
array elements. For simplicity, assume that the sum of the data
values is less than $FF. You do not need to use the BCC to check
for carry flag. Follow the following steps to write this
program. - Define two arrays called List1 and List2 using DC.B
directive. Initialize List1 with byte-size values of $6, $12,
$4, $0F, and $11. Initialize List2 with byte-size values of $4,
$5, and $7. Reserve two byte-size locations called Sum1 and Sum2
using DS.B directive. - The subroutine must find the sum of the
elements of the array list1. Before calling the subroutine, the
main program must initialize Register X to have the address of
the array and Register B to have the size of the array. - The
subroutine must use a loop and indexed addressing mode using
Register X as the index register and Register B as the loop
counter. The subroutine must return the sum in Register A. - The
main program must call the subroutine two times. The first time,
the subroutine wil