simulation of lc4 memory list