addMem V2

Signed-off-by: star52065c <sar52065c@gmail.com>