Complete the following program that only adds integers that…
Complete the following program that only adds integers that are odd positives. The program considers the NON-ZERO integers at labels N1, N2, and N3 and stores the sum of the appropriate integers in the memory at label SUM. It uses a subroutine at label CHKN to check each integer. .origin 0x0001_0000 START: LUI t0, %hi(START) LW a0, %lo(N1)(t0) L1: ADDI a1, a0, 0 LW a0, %lo(N2)(t0) ADDI a6, t0, %lo(CHKN) JR a6 L2: ADD a1, a1, a0 LW a0, %lo(N3)(t0) L3: ADD a1, a1, a0 SW a1, %lo(SUM)(t0) HALT CHKN: ADDI a4, a0, 0 # move in to a4 for testing ANDI a4, a4, 0x0001 # right most bit is always 1 if odd WRONG: ANDI a0, a0, 0 # zero out wrong values RETURN: RET N1: .word # value not shown N2: .word # value not shown N3: .word # value not shown SUM: .word 0