A simple memory emulator.