implement rom loading from memory.