C-psudo code to assembly help
My boss asked me to convert this to assembly and I don't know a lot about assembly could someone please help me out 

PLEASE I NEED HELP ASAP I HAVE HAND IT IN 1 HOUR

This is the C-psudo code given to me 

     //Global Variables 
     #define HRM_PERIOD 15
    
    int hrArr [HRM_PERIOD]
    
    int *hrPt = hrArr;
    
    /* 
    Function addtoarray
    Parameter: int np - a value to add to the array
    
    Description: Stores 16-bit value np in array using global pointer hraPt. hraPt is incremented so that the next call will add the value to the next element in the array. The pointer wraps to start when it reaches the end of the array
    */ 
    
    void addToArray(int np)
    {
    *hraPt = np;// save value
    hraPt++; // increment pointer
    // wrap around
    if (hraPt == hrArr + HRM_PERIOD) 
    hraPt = hrArr
    }

Please Please help me anything helps 

Thanks 



C-psudo code to assembly help
===

My boss asked me to convert this to assembly and I don't know a lot about assembly could someone please help me out 

PLEASE I NEED HELP ASAP I HAVE HAND IT IN 1 HOUR

This is the C-psudo code given to me 

     //Global Variables 
     #define HRM_PERIOD 15
    
    int hrArr [HRM_PERIOD]
    
    int *hrPt = hrArr;
    
    /* 
    Function addtoarray
    Parameter: int np - a value to add to the array
    
    Description: Stores 16-bit value np in array using global pointer hraPt. hraPt is incremented so that the next call will add the value to the next element in the array. The pointer wraps to start when it reaches the end of the array
    */ 
    
    void addToArray(int np)
    {
    *hraPt = np;// save value
    hraPt++; // increment pointer
    // wrap around
    if (hraPt == hrArr + HRM_PERIOD) 
    hraPt = hrArr
    }

Please Please help me anything helps 

Thanks 


