fixed stm, masking addresses, and half of ldm