Complete helper functions for all memory instructions