Implemented memory, set flag instructions