Memory functions to handle addressing modes