MOV R0,N // R0 = address of variable N LDR R0,[R0] // R0 = 4 MOV R1,#0 // R1 = 0; R1 is "i" MOV R2,#0 // R2 = 0; R2 is "sum" MOV R3,amount // R3 = base address of array "amount" MOV R4,#1 // R4 = 1 LOOP: // for(i=0; i