Changed memexp.asm to avoid possible bugs