# //Write the assembly for the following loop
# // Use indexed array access (no pointers)
# const int AMAX = 15;
# int A[] = {0,1,2,3,4,5,6,7,8,9,10,,11,12,13,14,15};
# for (int i=AMAX; i > 0; i--) {
# A[i-1] = A[i] * 2;
.data
A: .word 0,1,2,3,4,5,6,7,
.word 8,9,10,11,12,13,14,15
AMAX: .word 15
.text
.globl main
main:
#TODO: write the loop code: A[i+1] = A[i] * 2