calculates offsets of variables in AR for use with LDO/STO commands