(RSP HLE bsmiles32 backport  - Remove duplication of memory access
functions between jpeg and musyx modules