Memory st/ld test code