Example with function reading value from memory with offset and base addess.