desired code:
your text
call_func_init(){
your text
INVAR3_sah = INIT_VAL;
your text
}
your text
call_func_mgm(){
your text
INVAR3_INCR = INVAR3 - INVAR3_sah;
your text
INVAR3_sah = INVAR3;
your text
}
I am a beginner and this is just a task my instructor gave me.