Translate a statement with array variables

  • Translate the following program statement:

    int A[10];
    short B[20];
    char  k;
    
    int main( )
    {
        B[k] = A[4] + 7;
    }
    

    Assembler code: