1. Write PIC24 assembly code that implements main() in the following
C
code. Use the approach of for initializing data memory. You must show the complete
solution for your init_variables subroutine.
// See code for ui16_swap from previous problem.
void i16vec_add(int16_t* pi16_a, int16_t* pi16_b, uint8_t u8_cnt)
int16_t ai16_x[] = {-3489, 239, 900, -216, 8920, -9345};
int16_t ai16_y[] = {980, 3766, -8472, 32000, -16788, 34};
int main(void) {
// Note: this passes the starting addresses of
// ai16_x, ai16_y to i16vec_add
i16vec_add(ai16_x, ai16_y, 6);