Simulation of virtual memory