Memory emulator