Update Patch_Memory.cpp

Supported all functions of type D and E codes.