implemented store for emulator, needs same to be done with compiler